input-capture: add modifiers event

This commit is contained in:
Gwilherm Folliot 2024-12-13 23:08:57 +01:00
parent 834cf61e45
commit 5a50fe7520
No known key found for this signature in database
GPG key ID: 90236D3623DCD660

View file

@ -129,6 +129,28 @@
<arg name="state" type="uint" enum="key_state" summary="physical state of the key" />
</event>
<event name="modifiers">
<description summary="modifier and group state">
Notifies clients that the modifier and/or group state has
changed, and it should update its local state.
The compositor may send this event without a surface of the client
having keyboard focus, for example to tie modifier information to
pointer focus instead. If a modifier event with pressed modifiers is sent
without a prior enter event, the client can assume the modifier state is
valid until it receives the next modifiers event. In order to
reset the modifier state again, the compositor can send a
modifiers event with no pressed modifiers.
In the wl_keyboard logical state, this event updates the modifiers and
group.
</description>
<arg name="mods_depressed" type="uint" summary="depressed modifiers"/>
<arg name="mods_latched" type="uint" summary="latched modifiers"/>
<arg name="mods_locked" type="uint" summary="locked modifiers"/>
<arg name="group" type="uint" summary="keyboard layout"/>
</event>
<enum name="button_state">
<description summary="physical button state">
Describes the physical state of a button that produced the button