sway-patched-tray-menu/sway/input
Kenny Levinsen e1b268af98 seat: Avoid sending redundant keymaps on reload
When we reload the config, we reset every input device and re-apply
configuration from the config file. This means that the keyboard keymap
is updated at least once during config reload, more if the config file
contains keyboard configuration.

When they keyboard keymap changes and is updated through wlr_seat, the
keymap ends up sent to every keyboard bound in every client, seemingly
multiple times. On an x230 of mine with a keyboard layout set in the
config file, I see 42 keymap events sent to foot on config reload.

Reduce events from keyboard configurations by skipping all but the
currently active keyboard for the seat, and by clearing the active
keyboard during input manager device reset. After this change, I only
see a single just-in-time keymap event.

Fixes: https://github.com/swaywm/sway/issues/6654
2022-12-04 13:01:41 -07:00
..
cursor.c Use keyboard_state.focused_surface directly 2022-10-09 10:07:51 +02:00
input-manager.c seat: Avoid sending redundant keymaps on reload 2022-12-04 13:01:41 -07:00
keyboard.c seat: Avoid sending redundant keymaps on reload 2022-12-04 13:01:41 -07:00
libinput.c Support libinput's 1.21 new dwtp option 2022-10-30 10:56:34 +01:00
seat.c seat: Avoid sending redundant keymaps on reload 2022-12-04 13:01:41 -07:00
seatop_default.c input: tweak focus behavior to allow focusing parent containers 2022-10-21 10:05:00 +02:00
seatop_down.c sway/input: follow up wlroots input device events renaming 2022-03-17 21:52:59 +03:00
seatop_move_floating.c container: Move pending state to state struct 2021-02-16 22:05:00 -05:00
seatop_move_tiling.c Add tab dragging functionality 2021-05-06 00:24:55 -04:00
seatop_resize_floating.c Handle border width and height on minimum floating sizes 2021-12-14 10:30:10 +01:00
seatop_resize_tiling.c container: Move pending state to state struct 2021-02-16 22:05:00 -05:00
switch.c Remove access to wlr_input_device union 2022-06-22 12:44:15 -04:00
tablet.c Make libinput backend optional 2022-11-28 13:28:15 -05:00
text_input.c sway/input: don't pass possibly invalid modifiers pointer 2022-03-04 08:37:07 +01:00