]> Dogcows Code - chaz/openbox/commitdiff
Fixing commit 066a15d7aa64eaa0. Don't ever use CurrentTime as event_curtime.
authorDana Jansens <danakj@orodu.net>
Thu, 14 Oct 2010 23:37:36 +0000 (19:37 -0400)
committerDana Jansens <danakj@orodu.net>
Mon, 24 Jan 2011 19:19:22 +0000 (14:19 -0500)
Force event_curtime to be some valid timestamp.

openbox/event.c

index 1ceb25db0020cee779b09a30a392c78daa4fd316..a72f07b290912295a0afee6a2a3614936bbcd288 100644 (file)
@@ -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;
     }
This page took 0.02358 seconds and 4 git commands to generate.