Commit d12a9a5e authored by Alexander Larsson's avatar Alexander Larsson

[broadway] Add gdk_broadway_display_get_last_seen_time

parent 42cbed67
......@@ -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)
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment