Explorar o código

Exit if selection is taken from us

Thomas Dy %!s(int64=8) %!d(string=hai) anos
pai
achega
b192f99733
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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