[broadway] Serialize event times

Event times come from the browser and may change weirdly when we reconnect
with another browser, so we normalize these to be strictly increasing
and with a 5 second gap for each reconnect.
This commit is contained in:
Alexander Larsson
2011-04-07 19:12:51 +02:00
parent 9d974ca13a
commit 095ccf9c11
4 changed files with 24 additions and 9 deletions

View File

@ -263,7 +263,7 @@ gdk_broadway_device_grab (GdkDevice *device,
return GDK_GRAB_ALREADY_GRABBED;
if (time_ == 0)
time_ = broadway_display->last_event_time;
time_ = broadway_display->last_seen_time;
broadway_display->pointer_grab_window = window;
broadway_display->pointer_grab_owner_events = owner_events;