about summary refs log tree commit diff
path: root/src/x/display.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/x/display.rs')
-rw-r--r--src/x/display.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/x/display.rs b/src/x/display.rs
index 7aa7e2e..e950484 100644
--- a/src/x/display.rs
+++ b/src/x/display.rs
@@ -16,6 +16,11 @@ impl HasConnection for Arc<Display> {
   fn connection(&self) -> &Connection { &self.connection }
 }
 
+impl PartialEq for Display {
+  fn eq(&self, other: &Display) -> bool {
+    self.connection == other.connection
+  }
+}
 
 impl Display {
   pub fn new() -> xcb::Result<Display> {