Use >= instead of > when comparing timestamps, or we will ignore some events

This commit is contained in:
Mikael Magnusson 2010-09-19 19:05:55 +02:00 committed by Dana Jansens
parent b1fc19711f
commit f458d66c7e

View file

@ -2202,7 +2202,7 @@ gboolean event_time_after(guint32 t1, guint32 t2)
gboolean find_timestamp(XEvent *e, gpointer data) gboolean find_timestamp(XEvent *e, gpointer data)
{ {
const Time t = event_get_timestamp(e); const Time t = event_get_timestamp(e);
if (t > event_curtime) { if (t >= event_curtime) {
event_curtime = t; event_curtime = t;
return TRUE; return TRUE;
} }