wlroots/protocol
Michael Weiser 471b873de3 keyboard-shortcuts-inhibit: Implement the protocol
The keyboard shortcuts inhibitor protocol is useful for remote desktop
and virtualization software in order to request all keyboard events to
be passed to it and (almost) none being resonded to by the compositor.
This allows the session at the other end of the remote desktop
connection or inside the virtual machine to be interacted with as usual
(e.g. Alt+Tab to switch windows on the remote system instead of
locally).

Add the wayland protocol to the meson build files.

Copy'n'search'n'replace the very similar idle inhibit protocol
implementation. This already provides all the basic functionality:
- creating and destroying inhibitors upon request by a client,
- destruction in reaction to destruction of surfaces or displays,
- a list of inhibitors to search through for existing ones as well as
- a signal to be sent to the compositor upon registration of a new
  inhibitor.

Beyond that we add the active and inactive events to be sent to the
client and wire those to activate and deactivate functions for the
compositor to call in confirmation of activation of a new inhibitor or
(un-)suspending of an existing inhibitor e.g. in response to a special
key combination entered by the user as suggested by the protocol.

As mandated by the protocol, we check the existance of an inhibitor for
a given surface and seat upon creation and return the error provided by
the protocol for that purpose.

Signed-off-by: Michael Weiser <michael.weiser@gmx.de>

Closes: https://github.com/swaywm/wlroots/issues/1817
2020-02-20 21:40:34 +01:00
..
gtk-primary-selection.xml Add wlr_primary_selection_device_manager and wlr_primary_selection_source 2017-12-22 19:20:12 +01:00
idle.xml Add idle protocol 2018-01-10 14:32:41 +02:00
input-method-unstable-v2.xml wlroots: add basic support for zwp_input_method_v2 2018-10-09 09:56:46 +00:00
meson.build keyboard-shortcuts-inhibit: Implement the protocol 2020-02-20 21:40:34 +01:00
server-decoration.xml Add server-decoration skeleton 2017-10-24 21:56:18 +02:00
virtual-keyboard-unstable-v1.xml virtual-keyboard: add support for the virtual-keyboard-v1 protocol 2018-05-28 10:05:55 +02:00
wlr-data-control-unstable-v1.xml Update data-control 2019-02-15 11:58:33 +01:00
wlr-export-dmabuf-unstable-v1.xml Update example and protocol 2018-06-17 14:06:52 +01:00
wlr-foreign-toplevel-management-unstable-v1.xml foreign-toplevel: support fullscreen state and request 2019-04-29 00:00:53 +03:00
wlr-gamma-control-unstable-v1.xml Amend typo 2019-11-23 10:33:47 -05:00
wlr-input-inhibitor-unstable-v1.xml Add wlr_input_inhibitor 2018-04-03 14:06:52 -04:00
wlr-layer-shell-unstable-v1.xml protocol: sync layer-shell with upstream 2019-10-17 09:12:33 -04:00
wlr-output-management-unstable-v1.xml output-management-v1: update protocol, add set_custom_mode 2019-04-11 09:19:57 -06:00
wlr-output-power-management-unstable-v1.xml Add wlr-output-power-management 2020-02-20 16:23:45 +01:00
wlr-screencopy-unstable-v1.xml protocol/screencopy: Add damage reporting 2019-10-22 10:41:32 -04:00
wlr-virtual-pointer-unstable-v1.xml virtual-pointer: Add request for mapping to specific output 2020-02-10 21:01:38 +01:00