[broadway] Save last event time seen

This commit is contained in:
Alexander Larsson 2011-04-01 15:46:01 +02:00
parent 8aad17592e
commit 56d05e093d
2 changed files with 4 additions and 0 deletions

View File

@ -145,6 +145,8 @@ struct _GdkBroadwayDisplay
guint32 saved_serial;
BroadwayInput *input;
GList *input_messages;
guint64 last_event_time;
};
struct _GdkBroadwayDisplayClass

View File

@ -100,6 +100,8 @@ _gdk_broadway_events_got_input (GdkDisplay *display,
screen = gdk_display_get_default_screen (display);
display_broadway->last_event_time = message->base.time;
switch (message->base.type) {
case 'e': /* Enter */
display_broadway->last_x = message->pointer.root_x;