mirror of
https://github.com/brl/mutter.git
synced 2025-05-06 15:14:56 +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
|
* time, or if it is at least 30 seconds earlier - in case the system
|
||||||
* clock was changed
|
* 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;
|
backend_x11->last_event_time = current_time;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user