From c0672b66834a8457976c451b42e99982a9357563 Mon Sep 17 00:00:00 2001 From: Tomas Frydrych Date: Wed, 18 Feb 2009 16:54:18 +0000 Subject: [PATCH] [x11] Only update cached last event time if we have a real timestamp. Ignore the timestamp if it is set to CurrentTime (e.g., when the last event did not carry a timestamp). --- clutter/x11/clutter-event-x11.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/clutter/x11/clutter-event-x11.c b/clutter/x11/clutter-event-x11.c index 6aec05f1e..84cba9ff8 100644 --- a/clutter/x11/clutter-event-x11.c +++ b/clutter/x11/clutter-event-x11.c @@ -244,7 +244,8 @@ update_last_event_time (ClutterBackendX11 *backend_x11, * time, or if it is at least 30 seconds earlier - in case the system * clock was changed */ - if (current_time > last_time || (last_time - current_time > (30 * 1000))) + if ((current_time != CurrentTime) && + (current_time > last_time || (last_time - current_time > (30 * 1000)))) backend_x11->last_event_time = current_time; }