diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2022-12-18 23:39:02 +0100 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2022-12-18 23:39:02 +0100 |
| commit | 9f8b6b909d59650f05c28ba98e83c3660bd0641c (patch) | |
| tree | 7c35c289779ac1bab3c6bba8d37b37c0ee1a454e /include | |
| parent | cc9277211a3537fcaafcfd8ff94c8eb3f5902152 (diff) | |
seat: Set keyboard if seat keyboard is NULL
sway sends wl_keyboard.enter on seat focus change and when a keyboard
active on a seat is configured. If all keyboards are removed and a
keyboard is added back without changing the focused client, no new
notify event would be sent despite having keyboard focus. This could
lead to key events without notify, which is a protocol violation.
As a quick fix, when configuring a keyboard on a seat where no keyboard
is currently active, activate the keyboard so that a focused surface
will receive a notify event.
Regressed by: e1b268af98edeb09e570e8855ef64f0719cbafe2
Closes: https://github.com/swaywm/sway/issues/7330
(cherry picked from commit 1ade0ce753dc5f588584f444ce80d27c3b1e4300)
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
