summaryrefslogtreecommitdiff
path: root/src/buttons.rs
diff options
context:
space:
mode:
authortcmal <me@aria.rip>2024-08-30 17:22:14 +0100
committertcmal <me@aria.rip>2024-08-30 17:38:59 +0100
commit0178e6d6ee7782748c575cb1d058e82c6c1a9473 (patch)
tree0799483a21547d5675d8e07449d9dafb7c03e08c /src/buttons.rs
parent8fc827a3b30de16b6adbf80abea3bc224d507268 (diff)
Fix mouse grab not being released sometimes
Diffstat (limited to 'src/buttons.rs')
-rw-r--r--src/buttons.rs2
1 files changed, 2 insertions, 0 deletions
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,
});