events: Update current_time as best as we can on misc X events
Instead of always setting it to CurrentTime.
This commit is contained in:
parent
1169e104cb
commit
6219ae782a
@ -1775,7 +1775,6 @@ meta_display_handle_xevent (MetaDisplay *display,
|
|||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
display->current_time = event_get_time (display, event);
|
|
||||||
display->monitor_cache_invalidated = TRUE;
|
display->monitor_cache_invalidated = TRUE;
|
||||||
|
|
||||||
if (display->focused_by_us &&
|
if (display->focused_by_us &&
|
||||||
@ -1871,7 +1870,7 @@ meta_display_handle_xevent (MetaDisplay *display,
|
|||||||
bypass_gtk = TRUE;
|
bypass_gtk = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
display->current_time = CurrentTime;
|
display->current_time = event_get_time (display, event);
|
||||||
return bypass_gtk;
|
return bypass_gtk;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user