mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-12-27 03:49:49 +01:00
471b873de3
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 |
||
---|---|---|
.. | ||
gtk-primary-selection.xml | ||
idle.xml | ||
input-method-unstable-v2.xml | ||
meson.build | ||
server-decoration.xml | ||
virtual-keyboard-unstable-v1.xml | ||
wlr-data-control-unstable-v1.xml | ||
wlr-export-dmabuf-unstable-v1.xml | ||
wlr-foreign-toplevel-management-unstable-v1.xml | ||
wlr-gamma-control-unstable-v1.xml | ||
wlr-input-inhibitor-unstable-v1.xml | ||
wlr-layer-shell-unstable-v1.xml | ||
wlr-output-management-unstable-v1.xml | ||
wlr-output-power-management-unstable-v1.xml | ||
wlr-screencopy-unstable-v1.xml | ||
wlr-virtual-pointer-unstable-v1.xml |