aboutsummaryrefslogtreecommitdiffstats
path: root/sway/sway-ipc.7.scd
diff options
context:
space:
mode:
authorLibravatar Brian Ashworth <bosrsf04@gmail.com>2019-11-27 20:57:44 -0500
committerLibravatar Simon Ser <contact@emersion.fr>2019-11-28 10:34:49 +0100
commit0cdad33f1a08f86675efd56c2236f903af744162 (patch)
treea058cd922a8d6d691064b94f217cbb1f8c20c2c7 /sway/sway-ipc.7.scd
parentconfig: improvements to the reload validation (diff)
downloadsway-0cdad33f1a08f86675efd56c2236f903af744162.tar.gz
sway-0cdad33f1a08f86675efd56c2236f903af744162.tar.zst
sway-0cdad33f1a08f86675efd56c2236f903af744162.zip
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/sway-ipc.7.scd')
0 files changed, 0 insertions, 0 deletions