wayland: add shortcut inhibitor support

This adds support for the shortcut inhibitor protocol in gdk/wayland
backend.

A shortcut inhibitor request is issued from the gdk wayland backend for
both the older, deprecated API gdk_device_grab() and the new gdk seat
API gdk_seat_grab(), but only if the requested capability is for the
keyboard only.

https://bugzilla.gnome.org/show_bug.cgi?id=783343
This commit is contained in:
Olivier Fourdan
2017-03-22 10:21:02 +01:00
parent 7dd3349751
commit 1c23bce350
7 changed files with 81 additions and 2 deletions

View File

@ -281,4 +281,9 @@ void gdk_wayland_seat_set_global_cursor (GdkSeat *seat,
struct wl_output *gdk_wayland_window_get_wl_output (GdkWindow *window);
void gdk_wayland_window_inhibit_shortcuts (GdkWindow *window,
GdkSeat *gdk_seat);
void gdk_wayland_window_restore_shortcuts (GdkWindow *window,
GdkSeat *gdk_seat);
#endif /* __GDK_PRIVATE_WAYLAND_H__ */