projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
4940d00
)
support serials wrapping around
author
Dana Jansens
<danakj@orodu.net>
Sun, 3 Jun 2007 19:20:55 +0000
(19:20 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Sun, 3 Jun 2007 19:20:55 +0000
(19:20 +0000)
openbox/event.c
patch
|
blob
|
history
diff --git
a/openbox/event.c
b/openbox/event.c
index
a75d771
..
9f1146a
100644
(file)
--- 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;