gardesk/gar / a67fe42

Browse files

fix: replay button events for unmanaged windows

Authored by mfwolffe <wolffemf@dukes.jmu.edu>
SHA
a67fe422de0c2ece427b1708ecdcf5a0daf9c333
Parents
4161b2e
Tree
b9028ee

1 changed file

StatusFile+-
M gar/src/x11/events.rs 6 0
gar/src/x11/events.rsmodified
@@ -950,6 +950,12 @@ impl WindowManager {
950950
 
951951
         // Only handle if we manage this window
952952
         if !self.windows.contains_key(&window) {
953
+            // Replay the click so it passes through to the unmanaged window
954
+            self.conn.conn.allow_events(
955
+                x11rb::protocol::xproto::Allow::REPLAY_POINTER,
956
+                x11rb::CURRENT_TIME,
957
+            )?;
958
+            self.conn.flush()?;
953959
             return Ok(());
954960
         }
955961