mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 19:42:05 +00:00
[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).
This commit is contained in:
parent
d2fe1fda31
commit
c0672b6683
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user