all repos — openbox @ 0df3d6f6c3e8d963a6cc49fecb21fb938d8212ff

openbox fork - make it a bit more like ryudo

support serials wrapping around
Dana Jansens danakj@orodu.net
commit

0df3d6f6c3e8d963a6cc49fecb21fb938d8212ff

parent

4940d007cce43a135f1b448902f5a3571dbce62a

1 files changed, 3 insertions(+), 2 deletions(-)

jump to
M openbox/event.copenbox/event.c

@@ -1887,11 +1887,12 @@ next = g_slist_next(it);

/* 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;