mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-19 06:59:51 -05:00
Clarify clients behavior on wl_keyboard.leave
Clients must assume that every key, including modifiers, are lifted after getting wl_keyboard.leave event, not doing so could lead to key repeat keep going after the user changes focus, or stuck modifiers, when the user interacts with client without keyboard focus. Signed-off-by: Kirill Chibisov <contact@kchibisov.com>
This commit is contained in:
parent
4aa6eb868a
commit
57b7c7d946
1 changed files with 3 additions and 0 deletions
|
|
@ -2218,6 +2218,9 @@
|
||||||
|
|
||||||
The leave notification is sent before the enter notification
|
The leave notification is sent before the enter notification
|
||||||
for the new focus.
|
for the new focus.
|
||||||
|
|
||||||
|
After this event client must assume that all keys, including modifiers,
|
||||||
|
are lifted and also it must stop key repeating if there's some going on.
|
||||||
</description>
|
</description>
|
||||||
<arg name="serial" type="uint" summary="serial number of the leave event"/>
|
<arg name="serial" type="uint" summary="serial number of the leave event"/>
|
||||||
<arg name="surface" type="object" interface="wl_surface" summary="surface that lost keyboard focus"/>
|
<arg name="surface" type="object" interface="wl_surface" summary="surface that lost keyboard focus"/>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue