diff options
| author | Dana Jansens <danakj@orodu.net> | 2008-01-26 13:36:20 -0500 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2008-01-27 02:39:39 -0500 |
| commit | 8af80aa8dd47090bc418c6cf7e1c3894621566b7 (patch) | |
| tree | ae34563473cce8025fc860a2d43b2cdba4be7b65 | |
| parent | 4307366b713aaf1a5787dbb3244a5717db1330e8 (diff) | |
when ignoring enter events, only ignore up to the current serial (NextRequest()-1). Don't ignore enters that come after this with the next serial.
| -rw-r--r-- | openbox/event.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/openbox/event.c b/openbox/event.c index 7d24640c..535e9f14 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -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) |
