mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-05 05:05:57 +01:00
f2d3b1000f
A wlr_keyboard_group allows for multiple keyboard devices to be combined into one logical keyboard. Each keyboard device can only be added to one keyboard group. This helps with the situation where one physical keyboard is exposed as multiple keyboard devices. It is up to the compositors on how they group keyboards together, if at all. Since a wlr_keyboard_group is one logical keyboard, the keys are a set. This means that if a key is pressed on multiple keyboard devices, the key event will only be emitted once, but the internal state will count the number of devices that the key is pressed on. Likewise, the key release will not be emitted until the key is released from all devices. If the compositor wants access to which keys are pressed and released on each keyboard device, the events for those devices can be listened to, as they currently are, in addition to the group keyboard's events. Also, all keyboard devices in the group must share the same keymap. If the keymap's differ, the keyboard device will not be able to be added to the group. Once in the group, if the keymap or effective layout for one keyboard device changes, it will be synced to all keyboard devices in the group. The repeat info and keyboard modifiers are also synced
80 lines
2 KiB
Meson
80 lines
2 KiB
Meson
lib_wlr_types = static_library(
|
|
'wlr_types',
|
|
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_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.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_xcursor_manager.c',
|
|
'wlr_xdg_decoration_v1.c',
|
|
'wlr_xdg_output_v1.c',
|
|
),
|
|
include_directories: wlr_inc,
|
|
dependencies: [
|
|
drm.partial_dependency(compile_args: true), # <drm_fourcc.h>
|
|
pixman,
|
|
wayland_server,
|
|
wlr_protos,
|
|
xkbcommon,
|
|
],
|
|
)
|