mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-05 13:29:50 -05:00
wl_keyboard: Add modifier event
This event sends the current keyboard modifier/group state from the compositor to the client, allowing all clients to have a consistent view of the keyboard state (e.g. current layout, Caps Lock, et al). It should be sent after a keyboard enter event, and also immediately after any key event which changes the modifier state. Signed-off-by: Daniel Stone <daniel@fooishbar.org>
This commit is contained in:
parent
f7a39ff69b
commit
9a1705c5f5
3 changed files with 34 additions and 1 deletions
|
|
@ -210,6 +210,9 @@ struct wl_keyboard_grab;
|
|||
struct wl_keyboard_grab_interface {
|
||||
void (*key)(struct wl_keyboard_grab *grab, uint32_t time,
|
||||
uint32_t key, uint32_t state);
|
||||
void (*modifiers)(struct wl_keyboard_grab *grab, uint32_t serial,
|
||||
uint32_t mods_depressed, uint32_t mods_latched,
|
||||
uint32_t mods_locked, uint32_t group);
|
||||
};
|
||||
|
||||
struct wl_keyboard_grab {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue