[broadway] Add gdk_broadway_display_get_last_seen_time

This commit is contained in:
Alexander Larsson 2011-04-07 20:18:13 +02:00
parent 42cbed6759
commit d12a9a5e99
2 changed files with 12 additions and 0 deletions

View File

@ -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__ */

View File

@ -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)
{