swayfx/sway
Brian Ashworth 975b8a90ad input: reset keyboard groups keyboard on reset all
If the keyboard that triggers the reload binding is using the default
keymap, default repeat delay, and default repeat rate, the associated
keyboard group is never being destroyed on reload. This was causing the
keyboard group's keyboard not to get disarmed and result in a
use-after-free in handle_keyboard_repeat.

If the keyboard was not using the defaults for all three settings, then
it's associated keyboard would get destroyed during the reset - which
did disarm the keyboard group's keyboard. In this case, the
use-after-free would not occur.

This adds a block to input_manager_reset_all_inputs that resets the
keyboard for all keyboard groups in all seats, which will disarm them.
Since the inputs are all being reset anyway, which will reset all
individual keyboards, it is not necessary to be selective on which ones
get reset.
2020-05-14 23:51:17 -04:00
..
commands commands: Add per-view shortcuts_inhibitor command 2020-05-13 21:22:16 -04:00
config config/output: reconfigure input devices after full output init 2020-04-26 09:13:39 +02:00
desktop Render layer shell popups over the top layer 2020-04-10 10:45:47 +02:00
input input: reset keyboard groups keyboard on reset all 2020-05-14 23:51:17 -04:00
tree commands: Add per-view shortcuts_inhibitor command 2020-05-13 21:22:16 -04:00
commands.c commands: Add per-view shortcuts_inhibitor command 2020-05-13 21:22:16 -04:00
config.c config: fix unfocused text color 2020-04-04 23:25:04 +02:00
criteria.c Introduce pid criteria token 2020-02-27 14:03:22 +01:00
decoration.c Fix double free when unmapping any view 2018-11-15 15:22:09 +10:00
ipc-json.c Add each view's shell to JSON description 2020-04-27 20:37:57 -04:00
ipc-server.c ipc-server: improve error message 2020-02-29 19:59:42 +01:00
main.c config: fix validation exit code and log level 2020-02-11 16:02:11 +01:00
meson.build commands: Add per-view shortcuts_inhibitor command 2020-05-13 21:22:16 -04:00
security.c Replace _XOPEN_SOURCE with _POSIX_C_SOURCE 2018-11-25 17:19:43 +01:00
server.c Add a secondary headless backend 2020-05-01 17:00:14 +02:00
sway-bar.5.scd swaybar: complete barconfig_update event handling 2019-09-04 16:48:50 -10:00
sway-input.5.scd fix typos in sway-input.5.scd 2020-04-29 12:43:34 +02:00
sway-ipc.7.scd Add each view's shell to JSON description 2020-04-27 20:37:57 -04:00
sway-output.5.scd Simplify repaint scheduling documentation 2020-05-11 10:36:33 +02:00
sway.1.scd add dots to man 2020-04-14 10:10:35 +02:00
sway.5.scd commands: Add per-view shortcuts_inhibitor command 2020-05-13 21:22:16 -04:00
swaynag.c Rename symbol set_cloexec to sway_set_cloexec, remove duplicates. 2019-11-01 12:41:08 -04:00
xdg_decoration.c Fix xdg-decoration unconfigured if set before first commit 2019-05-03 15:37:32 -06:00