diff options
author | Brian Ashworth <bosrsf04@gmail.com> | 2019-11-27 20:57:44 -0500 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2019-11-28 10:34:49 +0100 |
commit | 0cdad33f1a08f86675efd56c2236f903af744162 (patch) | |
tree | a058cd922a8d6d691064b94f217cbb1f8c20c2c7 /sway/commands/input/middle_emulation.c | |
parent | 1a5797803a48fb71515e6bd6335d684a6cae6b6d (diff) |
input/keyboard: reset seat keyboard on destroy
If a sway keyboard is being destroyed, then the keyboard is being
removed from a seat. If the associated wlr_keyboard is the currently
set keyboard for the wlr_seat, then we need to reset the wlr_seat's
keyboard to NULL so it doesn't reference an invalid device for the seat.
The next configured keyboard from the seat or the next keyboard from
that seat that has an event will then become the seat keyboard.
Similarly, this needs to be done for a wlr_keyboard_group's keyboard
when the wlr_keyboard_group is being destroyed.
Diffstat (limited to 'sway/commands/input/middle_emulation.c')
0 files changed, 0 insertions, 0 deletions