mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 22:20:24 +00:00
[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