From 0178e6d6ee7782748c575cb1d058e82c6c1a9473 Mon Sep 17 00:00:00 2001 From: tcmal Date: Fri, 30 Aug 2024 17:22:14 +0100 Subject: Fix mouse grab not being released sometimes --- src/buttons.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/buttons.rs') diff --git a/src/buttons.rs b/src/buttons.rs index fc79fa6..050ec5f 100644 --- a/src/buttons.rs +++ b/src/buttons.rs @@ -97,6 +97,7 @@ impl WM<'_> { w: Window, mut f: impl FnMut(&mut Self, MotionNotifyEvent) -> Result<()>, ) -> Result<()> { + debug!("grabbing pointer for mouse movement tracking action"); self.conn .wait_for_reply(self.conn.send_request(&GrabPointer { owner_events: false, @@ -138,6 +139,7 @@ impl WM<'_> { } } + debug!("ending mouse movement tracking"); self.conn.send_request(&UngrabPointer { time: x::CURRENT_TIME, }); -- cgit v1.2.3