wayland: Store the device that does a grab for a window on the window

This allows us to get the device if we need to make the window a popup. This
relies on the side effect that GTK calls into GDK to take a grab before the
popup window is shown.
This commit is contained in:
Rob Bradford
2012-02-27 14:06:22 +00:00
parent 161b9d2066
commit bdca0520e6
3 changed files with 33 additions and 0 deletions

View File

@ -146,4 +146,8 @@ void _gdk_wayland_display_manager_add_display (GdkDisplayManager *manager,
void _gdk_wayland_display_manager_remove_display (GdkDisplayManager *manager,
GdkDisplay *display);
void _gdk_wayland_window_set_device_grabbed (GdkWindow *window,
struct wl_input_device *input_device,
guint32 time_);
#endif /* __GDK_PRIVATE_WAYLAND_H__ */