aboutsummaryrefslogtreecommitdiff
path: root/sway/commands
diff options
context:
space:
mode:
authorBrian Ashworth <bosrsf04@gmail.com>2019-11-27 20:57:44 -0500
committerSimon Ser <contact@emersion.fr>2019-11-28 10:34:49 +0100
commit0cdad33f1a08f86675efd56c2236f903af744162 (patch)
treea058cd922a8d6d691064b94f217cbb1f8c20c2c7 /sway/commands
parent1a5797803a48fb71515e6bd6335d684a6cae6b6d (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')
0 files changed, 0 insertions, 0 deletions