[RFC PATCH] Introduce keyboard grabbing protocol

Olivier Fourdan ofourdan at redhat.com
Tue Aug 30 09:54:12 UTC 2016


Hi all,

I think we need a way for client to request a keyboard grab in Wayland.

Use case for this can be a virtual machine or remote connection viewer,
or even Xwayland itself who cannot tell the compositor when an X client
issues a XGrabKeyboard [1]

I would like to keep this protocol as simple as possible, the client asks
for a keyboard grab, the compositor may deny it, or may not even issue it.

The compositor may inform and ask the user if (s)he agrees with a given
applications grabbing the keyboard, might put in place a visual indication
that a grab is in effect, even allow the user to terminate the grab whenever
(s)he wants, etc. This is all up to the compositor and the user to decide.

I modelled this protocol after the keyboard locking mechanism but did not
keep the lifetime parameter, to keep things as simple as possible.

Cheers,
Olivier

Olivier Fourdan (1):
  Introduce keyboard grabbing protocol

 Makefile.am                                        |   1 +
 configure.ac                                       |   2 +-
 unstable/keyboard-grab/README                      |   4 +
 .../keyboard-grab/keyboard-grab-unstable-v1.xml    | 136 +++++++++++++++++++++
 4 files changed, 142 insertions(+), 1 deletion(-)
 create mode 100644 unstable/keyboard-grab/README
 create mode 100644 unstable/keyboard-grab/keyboard-grab-unstable-v1.xml

-- 
2.7.4



More information about the wayland-devel mailing list