mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-23 05:15:58 +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 |
||
---|---|---|
.. | ||
wlr_box.h | ||
wlr_buffer.h | ||
wlr_compositor.h | ||
wlr_cursor.h | ||
wlr_data_control_v1.h | ||
wlr_data_device.h | ||
wlr_export_dmabuf_v1.h | ||
wlr_foreign_toplevel_management_v1.h | ||
wlr_fullscreen_shell_v1.h | ||
wlr_gamma_control_v1.h | ||
wlr_gtk_primary_selection.h | ||
wlr_idle.h | ||
wlr_idle_inhibit_v1.h | ||
wlr_input_device.h | ||
wlr_input_inhibitor.h | ||
wlr_input_method_v2.h | ||
wlr_keyboard.h | ||
wlr_keyboard_group.h | ||
wlr_keyboard_shortcuts_inhibit_v1.h | ||
wlr_layer_shell_v1.h | ||
wlr_linux_dmabuf_v1.h | ||
wlr_list.h | ||
wlr_matrix.h | ||
wlr_output.h | ||
wlr_output_damage.h | ||
wlr_output_layout.h | ||
wlr_output_management_v1.h | ||
wlr_output_power_management_v1.h | ||
wlr_pointer.h | ||
wlr_pointer_constraints_v1.h | ||
wlr_pointer_gestures_v1.h | ||
wlr_presentation_time.h | ||
wlr_primary_selection.h | ||
wlr_primary_selection_v1.h | ||
wlr_region.h | ||
wlr_relative_pointer_v1.h | ||
wlr_screencopy_v1.h | ||
wlr_seat.h | ||
wlr_server_decoration.h | ||
wlr_surface.h | ||
wlr_switch.h | ||
wlr_tablet_pad.h | ||
wlr_tablet_tool.h | ||
wlr_tablet_v2.h | ||
wlr_text_input_v3.h | ||
wlr_touch.h | ||
wlr_virtual_keyboard_v1.h | ||
wlr_virtual_pointer_v1.h | ||
wlr_xcursor_manager.h | ||
wlr_xdg_decoration_v1.h | ||
wlr_xdg_output_v1.h | ||
wlr_xdg_shell.h | ||
wlr_xdg_shell_v6.h |