Browse Source

Exit if selection is taken from us

Thomas Dy 7 years ago
parent
commit
b192f99733
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/tray.rs

+ 3 - 0
src/tray.rs

@@ -225,6 +225,9 @@ impl<'a> Tray<'a> {
                 let event: &xcb::ConfigureNotifyEvent = xcb::cast_event(&event);
                 self.force_size(event.window(), Some((event.width(), event.height())));
             },
+            xcb::SELECTION_CLEAR => {
+                self.finish();
+            },
             _ => {}
         }
         None