From: Dana Jansens Date: Thu, 14 Oct 2010 23:37:36 +0000 (-0400) Subject: Fixing commit 066a15d7aa64eaa0. Don't ever use CurrentTime as event_curtime. X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=8ac60401e91e5f54c1acd3d2623b3695c1b4f102;p=chaz%2Fopenbox Fixing commit 066a15d7aa64eaa0. Don't ever use CurrentTime as event_curtime. Force event_curtime to be some valid timestamp. --- diff --git a/openbox/event.c b/openbox/event.c index 1ceb25db..a72f07b2 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -2202,7 +2202,7 @@ gboolean event_time_after(guint32 t1, guint32 t2) gboolean find_timestamp(XEvent *e, gpointer data) { const Time t = event_get_timestamp(e); - if (t >= event_curtime) { + if (t && t >= event_curtime) { event_curtime = t; return TRUE; }