sway-patched-tray-menu-github/sway
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
..
commands Make libinput backend optional 2022-11-28 13:28:15 -05:00
config Make DRM backend optional 2022-11-28 13:28:15 -05:00
desktop sway/desktop/output: listen to output mode in commit handle 2022-12-01 23:27:22 +01:00
input seat: Avoid sending redundant keymaps on reload 2022-12-04 13:01:41 -07:00
tree view: associate launch contexts with views 2022-11-26 09:48:58 +01:00
commands.c Allocate enough space for cmd_results->error 2022-06-16 09:32:44 +02:00
config.c Reject font values that are invalid for pango 2022-07-01 13:05:58 +02:00
criteria.c criteria: allow matching for NULL string criteria 2022-11-04 10:02:11 +01:00
decoration.c Fix double free when unmapping any view 2018-11-15 15:22:09 +10:00
ipc-json.c Make libinput backend optional 2022-11-28 13:28:15 -05:00
ipc-server.c sway: add non-desktop outputs to json when running swaymsg -t get_outputs 2022-09-19 07:26:45 -04:00
lock.c sway/lock: handle mode in output commit handler 2022-12-01 23:27:22 +01:00
main.c fix: remove redundant empty statement in main.c 2022-07-12 16:07:51 +02:00
meson.build Make libinput backend optional 2022-11-28 13:28:15 -05:00
realtime.c realtime: request SCHED_RR using CAP_SYS_NICE 2022-05-18 11:20:17 +02:00
server.c Chase breaking changes in wlroots!3903 2022-11-30 17:18:20 +01:00
sway-bar.5.scd man: update Pango font description URL 2021-08-04 02:15:04 +02:00
sway-input.5.scd Support libinput's 1.21 new dwtp option 2022-10-30 10:56:34 +01:00
sway-ipc.7.scd Support libinput's 1.21 new dwtp option 2022-10-30 10:56:34 +01:00
sway-output.5.scd sway-output.5: improve display of parameter 2022-08-08 08:03:27 +02:00
sway.1.scd man: update maintainer 2021-01-08 09:33:51 +01:00
sway.5.scd man: Add XWayland information 2022-09-25 20:05:16 +02:00
swaynag.c Bump RLIMIT_NOFILE 2021-10-30 08:19:35 -06:00
xdg_activation_v1.c launcher: export xdga tokens and use them for workspace matching 2022-11-26 09:48:58 +01:00
xdg_decoration.c Fix compile after wlroots commit c3e54021f8bbf3ec1c1e5906459be0ae85f5fb8c 2021-10-07 21:29:37 +03:00