forked from AuroraMiddleware/gtk
[broadway] Save last event time seen
This commit is contained in:
parent
8aad17592e
commit
56d05e093d
@ -145,6 +145,8 @@ struct _GdkBroadwayDisplay
|
||||
guint32 saved_serial;
|
||||
BroadwayInput *input;
|
||||
GList *input_messages;
|
||||
|
||||
guint64 last_event_time;
|
||||
};
|
||||
|
||||
struct _GdkBroadwayDisplayClass
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user