From 425f12921ca7752f0962b1eb7b1a28d28b91a04a Mon Sep 17 00:00:00 2001 From: Tony Crisci Date: Thu, 16 Jul 2015 23:38:22 -0400 Subject: [PATCH] Reset warp lock after first motion Reset `has_warp` to false (after it has been set after a successful warp) when the next motion is received. This should still prevent the cursor "looping" when warping, while preventing the cursor from getting "stuck" in torus mode. fixes #35 --- src/event.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/event.c b/src/event.c index ca2e153..b0c2075 100644 --- a/src/event.c +++ b/src/event.c @@ -176,6 +176,7 @@ void event_handle_motion(void) { * segments in the meantime. If so, we ignore this. */ if (has_warped) { DLOG("Pointer has already been warped, not warping it again."); + has_warped = false; return; }