mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-10 13:29:44 -05:00
move keyboard to seat
This commit is contained in:
parent
9bd0f47efd
commit
5354fe8729
13 changed files with 176 additions and 43 deletions
|
|
@ -41,19 +41,18 @@ static void keyboard_modifier_update(struct wlr_keyboard *keyboard) {
|
|||
keyboard->modifiers.latched = latched;
|
||||
keyboard->modifiers.locked = locked;
|
||||
keyboard->modifiers.group = group;
|
||||
|
||||
wl_signal_emit(&keyboard->events.modifiers, keyboard);
|
||||
}
|
||||
|
||||
void wlr_keyboard_notify_modifiers(struct wlr_keyboard *keyboard,
|
||||
uint32_t mods_depressed, uint32_t mods_latched, uint32_t mods_locked,
|
||||
uint32_t group) {
|
||||
struct wlr_event_keyboard_modifiers *event) {
|
||||
if (!keyboard->xkb_state) {
|
||||
return;
|
||||
}
|
||||
xkb_state_update_mask(keyboard->xkb_state, mods_depressed, mods_latched,
|
||||
mods_locked, 0, 0, group);
|
||||
xkb_state_update_mask(keyboard->xkb_state, event->mods_depressed,
|
||||
event->mods_latched, event->mods_locked, 0, 0, event->group);
|
||||
keyboard_modifier_update(keyboard);
|
||||
|
||||
wl_signal_emit(&keyboard->events.modifiers, event);
|
||||
}
|
||||
|
||||
void wlr_keyboard_notify_key(struct wlr_keyboard *keyboard,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue