diff options
author | Kenny Levinsen <kl@kl.wtf> | 2022-12-04 01:20:06 +0100 |
---|---|---|
committer | Ronan Pigott <rpigott@berkeley.edu> | 2022-12-04 13:01:41 -0700 |
commit | e1b268af98edeb09e570e8855ef64f0719cbafe2 (patch) | |
tree | d0cdfc81540dcdb2603e57b8f5acbd9433a2249d /common/log.c | |
parent | 6b3245ac77a881ec2c35f9a420fcea0d000f99c3 (diff) |
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
Diffstat (limited to 'common/log.c')
0 files changed, 0 insertions, 0 deletions