events: Set display->current_time when we start processing the event

Otherwise, the time will be refetched during processing.
This commit is contained in:
Jasper St. Pierre 2014-05-09 11:16:02 -04:00
parent 7a109a18af
commit 03c4de5590

View File

@ -1729,6 +1729,7 @@ meta_display_handle_xevent (MetaDisplay *display,
}
#endif
display->current_time = event_get_time (display, event);
display->monitor_cache_invalidated = TRUE;
if (display->focused_by_us &&
@ -1824,7 +1825,6 @@ meta_display_handle_xevent (MetaDisplay *display,
bypass_gtk = TRUE;
}
display->current_time = event_get_time (display, event);
return bypass_gtk;
}