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:
Rui Matos 2014-04-15 20:18:23 +02:00
parent 1169e104cb
commit 6219ae782a

View File

@ -1775,7 +1775,6 @@ meta_display_handle_xevent (MetaDisplay *display,
goto out;
}
display->current_time = event_get_time (display, event);
display->monitor_cache_invalidated = TRUE;
if (display->focused_by_us &&
@ -1871,7 +1870,7 @@ meta_display_handle_xevent (MetaDisplay *display,
bypass_gtk = TRUE;
}
display->current_time = CurrentTime;
display->current_time = event_get_time (display, event);
return bypass_gtk;
}