wayland: Add Xwayland grab keyboard support

Desktop / GNOME / Mutter - Olivier Fourdan [redhat.com] - 18 December 2017 12:15 EST

This protocol is limited to Xwayland only and is not visible/usable by any other client.

Mutter uses the following mechanisms to determine if an X11 client should be granted a grab:

- is "xwayland-allow-grabs" set?- if set, is the client blacklisted?- otherwise, has the client set the X11 window property _XWAYLAND_MAY_GRAB_KEYBOARD on the window using a client message?- if not, is it a client white-listed either via the default system list or the settings "xwayland-grab-access-rules"?

https://bugzilla.gnome.org/show_bug.cgi?id=783342

072afa5fa wayland: Add Xwayland grab keyboard support
.gitignore | 2 +
src/Makefile.am | 7 +
src/wayland/meta-wayland-versions.h | 1 +
src/wayland/meta-wayland.c | 24 +++
src/wayland/meta-xwayland-grab-keyboard.c | 327 ++++++++++++++++++++++++++++++
src/wayland/meta-xwayland-grab-keyboard.h | 40 ++++
6 files changed, 401 insertions(+)

Upstream: git.gnome.org


  • Share