diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-06-03 19:20:55 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-06-03 19:20:55 +0000 |
| commit | 0df3d6f6c3e8d963a6cc49fecb21fb938d8212ff (patch) | |
| tree | cd47d25aa700048a9acbf534a32dc42154887353 /openbox | |
| parent | 4940d007cce43a135f1b448902f5a3571dbce62a (diff) | |
support serials wrapping around
Diffstat (limited to 'openbox')
| -rw-r--r-- | openbox/event.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/openbox/event.c b/openbox/event.c index a75d7711..9f1146a3 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -1887,11 +1887,12 @@ static gboolean is_enter_focus_event_ignored(XEvent *e) /* XXX wraparound... */ ob_debug(" ignore range %u-%u\n", r->start, r->end); - if (e->xany.serial > r->end) { + if ((glong)(e->xany.serial - r->end) > 0) { + /* past the end */ ignore_serials = g_slist_delete_link(ignore_serials, it); g_free(r); } - else if (e->xany.serial >= r->start) + else if ((glong)(e->xany.serial - r->start) >= 0) return TRUE; } return FALSE; |
