diff options
author | Brian Ashworth <bosrsf04@gmail.com> | 2019-01-14 14:06:35 -0500 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2019-01-14 20:15:23 +0100 |
commit | 2573606b60f0606860634b90749f734cd0e918b7 (patch) | |
tree | 35d9264a20a6e78134c8b39361123143f90b5e32 /sway/input/seat.c | |
parent | CONTRIBUTING.md: mention tab width for line length (diff) | |
download | sway-2573606b60f0606860634b90749f734cd0e918b7.tar.gz sway-2573606b60f0606860634b90749f734cd0e918b7.tar.zst sway-2573606b60f0606860634b90749f734cd0e918b7.zip |
Disarm key repeat on reload
When resetting the keyboard during reload, disarm the key repeat on all
keyboards since the bindings (and possibly keyboard) will be freed before
the key repeat can go off.
Diffstat (limited to 'sway/input/seat.c')
-rw-r--r-- | sway/input/seat.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/input/seat.c b/sway/input/seat.c index a63999b6..a66a8198 100644 --- a/sway/input/seat.c +++ b/sway/input/seat.c | |||
@@ -542,6 +542,7 @@ void seat_reset_device(struct sway_seat *seat, | |||
542 | seat_reset_input_config(seat, seat_device); | 542 | seat_reset_input_config(seat, seat_device); |
543 | break; | 543 | break; |
544 | case WLR_INPUT_DEVICE_KEYBOARD: | 544 | case WLR_INPUT_DEVICE_KEYBOARD: |
545 | sway_keyboard_disarm_key_repeat(seat_device->keyboard); | ||
545 | sway_keyboard_configure(seat_device->keyboard); | 546 | sway_keyboard_configure(seat_device->keyboard); |
546 | break; | 547 | break; |
547 | case WLR_INPUT_DEVICE_TOUCH: | 548 | case WLR_INPUT_DEVICE_TOUCH: |