wlroots-hyprland/include/wlr
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
..
backend Drop RDP backend 2020-01-10 19:38:39 +01:00
interfaces output: re-introduce atomic mode, enabled, scale and transform 2019-12-30 11:21:11 -07:00
render render: unconditionally disable implicit X11 includes 2020-01-24 21:33:12 +00:00
types keyboard-shortcuts-inhibit: Implement the protocol 2020-02-20 21:40:34 +01:00
util meson: Various improvements 2019-12-23 07:48:29 -05:00
backend.h Remove all wayland-server.h includes 2019-07-27 15:49:32 -04:00
config.h.in Drop RDP backend 2020-01-10 19:38:39 +01:00
meson.build build: replace version with soversion 2020-01-24 11:17:03 +01:00
version.h.in Revert "Revert "Merge pull request #1194 from ascent12/meson_feature"" 2018-08-24 19:35:02 +12:00
xcursor.h Initial pass on API stability guarantees 2018-07-29 19:20:34 -04:00
xwayland.h xwayland: Expose configure request mask 2019-10-08 19:46:06 +03:00