swayfx/sway/input
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
..
cursor.c Implement pointer simulation if client hasn't bound to touch 2020-05-13 14:29:15 -04:00
input-manager.c input: reset keyboard groups keyboard on reset all 2020-05-14 23:51:17 -04:00
keyboard.c input/keyboard: use wlr_keyboard_keymaps_match from wlroots 2020-05-08 17:48:43 -04:00
libinput.c input/libinput: typo fixes (get -> get_default) 2019-08-03 15:46:05 +02:00
seat.c input: reset keyboard groups keyboard on reset all 2020-05-14 23:51:17 -04:00
seatop_default.c input/tablet: simplify parameter plumbing for tablet references 2020-05-10 16:49:35 +02:00
seatop_down.c input: rename pointer handlers to be unambiguous 2020-05-02 18:28:06 +02:00
seatop_move_floating.c input: rename pointer handlers to be unambiguous 2020-05-02 18:28:06 +02:00
seatop_move_tiling.c input: rename pointer handlers to be unambiguous 2020-05-02 18:28:06 +02:00
seatop_resize_floating.c Really fix floating window border resize problems 2020-05-13 11:07:31 +02:00
seatop_resize_tiling.c input: rename pointer handlers to be unambiguous 2020-05-02 18:28:06 +02:00
switch.c Fix a use-after-free error in switch binding 2020-04-14 19:41:30 -04:00
tablet.c input/tablet: query tablet focused surface for cursor image check 2020-04-26 09:14:54 +02:00
text_input.c im: Fix crash when im destorying and no focused surface exists 2020-04-04 11:42:04 +02:00