mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-12-01 11:32:21 +00: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
73 lines
1.9 KiB
Meson
73 lines
1.9 KiB
Meson
wlr_files += files(
|
|
'data_device/wlr_data_device.c',
|
|
'data_device/wlr_data_offer.c',
|
|
'data_device/wlr_data_source.c',
|
|
'data_device/wlr_drag.c',
|
|
'seat/wlr_seat_keyboard.c',
|
|
'seat/wlr_seat_pointer.c',
|
|
'seat/wlr_seat_touch.c',
|
|
'seat/wlr_seat.c',
|
|
'tablet_v2/wlr_tablet_v2_pad.c',
|
|
'tablet_v2/wlr_tablet_v2_tablet.c',
|
|
'tablet_v2/wlr_tablet_v2_tool.c',
|
|
'tablet_v2/wlr_tablet_v2.c',
|
|
'xdg_shell_v6/wlr_xdg_popup_v6.c',
|
|
'xdg_shell_v6/wlr_xdg_positioner_v6.c',
|
|
'xdg_shell_v6/wlr_xdg_shell_v6.c',
|
|
'xdg_shell_v6/wlr_xdg_surface_v6.c',
|
|
'xdg_shell_v6/wlr_xdg_toplevel_v6.c',
|
|
'xdg_shell/wlr_xdg_popup.c',
|
|
'xdg_shell/wlr_xdg_positioner.c',
|
|
'xdg_shell/wlr_xdg_shell.c',
|
|
'xdg_shell/wlr_xdg_surface.c',
|
|
'xdg_shell/wlr_xdg_toplevel.c',
|
|
'wlr_box.c',
|
|
'wlr_buffer.c',
|
|
'wlr_compositor.c',
|
|
'wlr_cursor.c',
|
|
'wlr_data_control_v1.c',
|
|
'wlr_export_dmabuf_v1.c',
|
|
'wlr_foreign_toplevel_management_v1.c',
|
|
'wlr_fullscreen_shell_v1.c',
|
|
'wlr_gamma_control_v1.c',
|
|
'wlr_gtk_primary_selection.c',
|
|
'wlr_idle_inhibit_v1.c',
|
|
'wlr_idle.c',
|
|
'wlr_input_device.c',
|
|
'wlr_input_inhibitor.c',
|
|
'wlr_input_method_v2.c',
|
|
'wlr_keyboard.c',
|
|
'wlr_keyboard_group.c',
|
|
'wlr_keyboard_shortcuts_inhibit_v1.c',
|
|
'wlr_layer_shell_v1.c',
|
|
'wlr_linux_dmabuf_v1.c',
|
|
'wlr_list.c',
|
|
'wlr_matrix.c',
|
|
'wlr_output_damage.c',
|
|
'wlr_output_layout.c',
|
|
'wlr_output_management_v1.c',
|
|
'wlr_output_power_management_v1.c',
|
|
'wlr_output.c',
|
|
'wlr_pointer_constraints_v1.c',
|
|
'wlr_pointer_gestures_v1.c',
|
|
'wlr_pointer.c',
|
|
'wlr_presentation_time.c',
|
|
'wlr_primary_selection_v1.c',
|
|
'wlr_primary_selection.c',
|
|
'wlr_region.c',
|
|
'wlr_relative_pointer_v1.c',
|
|
'wlr_screencopy_v1.c',
|
|
'wlr_server_decoration.c',
|
|
'wlr_surface.c',
|
|
'wlr_switch.c',
|
|
'wlr_tablet_pad.c',
|
|
'wlr_tablet_tool.c',
|
|
'wlr_text_input_v3.c',
|
|
'wlr_touch.c',
|
|
'wlr_virtual_keyboard_v1.c',
|
|
'wlr_virtual_pointer_v1.c',
|
|
'wlr_xcursor_manager.c',
|
|
'wlr_xdg_decoration_v1.c',
|
|
'wlr_xdg_output_v1.c',
|
|
)
|