mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-05 16:20:10 +00:00
[broadway] Add gdk_broadway_display_get_last_seen_time
This commit is contained in:
parent
42cbed6759
commit
d12a9a5e99
@ -47,6 +47,8 @@ typedef struct _GdkBroadwayWindowClass GdkBroadwayWindowClass;
|
||||
|
||||
GType gdk_broadway_window_get_type (void);
|
||||
|
||||
guint32 gdk_broadway_get_last_seen_time (GdkWindow *window);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __GDK_BROADWAY_WINDOW_H__ */
|
||||
|
@ -1341,6 +1341,16 @@ _gdk_broadway_window_translate (GdkWindow *window,
|
||||
}
|
||||
}
|
||||
|
||||
guint32
|
||||
gdk_broadway_get_last_seen_time (GdkWindow *window)
|
||||
{
|
||||
GdkDisplay *display;
|
||||
|
||||
display = gdk_window_get_display (window);
|
||||
_gdk_broadway_display_consume_all_input (display);
|
||||
return (guint32) GDK_BROADWAY_DISPLAY (display)->last_seen_time;
|
||||
}
|
||||
|
||||
static void
|
||||
gdk_window_impl_broadway_class_init (GdkWindowImplBroadwayClass *klass)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user