mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-02 09:01:39 -05:00
Maintain keyboard modifier state in wayland-server
Provide a slot for keyboard modifier state inside wl_keyboard for implementations to update, and use this to send wl_keyboard:;modifier events whenever the keyboard or pointer focus changes. Signed-off-by: Daniel Stone <daniel@fooishbar.org>
This commit is contained in:
parent
2261007953
commit
bcefacb89d
2 changed files with 26 additions and 1 deletions
|
|
@ -280,6 +280,13 @@ struct wl_keyboard {
|
|||
uint32_t grab_time;
|
||||
|
||||
struct wl_array keys;
|
||||
|
||||
struct {
|
||||
uint32_t mods_depressed;
|
||||
uint32_t mods_latched;
|
||||
uint32_t mods_locked;
|
||||
uint32_t group;
|
||||
} modifiers;
|
||||
};
|
||||
|
||||
struct wl_touch {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue