summaryrefslogtreecommitdiff
path: root/src/buttons.rs
diff options
context:
space:
mode:
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,
});