]> Dogcows Code - chaz/openbox/commitdiff
when ignoring enter events, only ignore up to the current serial (NextRequest()-1...
authorDana Jansens <danakj@orodu.net>
Sat, 26 Jan 2008 18:36:20 +0000 (13:36 -0500)
committerDana Jansens <danakj@orodu.net>
Sun, 27 Jan 2008 07:39:39 +0000 (02:39 -0500)
openbox/event.c

index 7d24640c4e6d2bbb9c533a9e2ea5bc6effb26f0b..535e9f14d3ad98cf1ba5ecec88750ca506197f5f 100644 (file)
@@ -1952,7 +1952,13 @@ static void event_ignore_enter_range(gulong start, gulong end)
 
 void event_end_ignore_all_enters(gulong start)
 {
-    event_ignore_enter_range(start, NextRequest(ob_display));
+    /* Use (NextRequest-1) so that we ignore up to the current serial only.
+       Inside event_ignore_enter_range, we increment the serial by one, but if
+       we ignore that serial too, then any enter events generated by mouse
+       movement will be ignored until we create some further network traffic.
+       Instead ignore up to NextRequest-1, then when we increment the serial,
+       we will be *past* the range of ignored serials */
+    event_ignore_enter_range(start, NextRequest(ob_display)-1);
 }
 
 static gboolean is_enter_focus_event_ignored(XEvent *e)
This page took 0.024911 seconds and 4 git commands to generate.