mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-05 07:38:22 +02:00
compositor-wayland: Handle keymap changes
This commit is contained in:
parent
c6c2f8e655
commit
0c194ced57
1 changed files with 5 additions and 1 deletions
|
|
@ -517,7 +517,11 @@ input_handle_keymap(void *data, struct wl_keyboard *keyboard, uint32_t format,
|
|||
return;
|
||||
}
|
||||
|
||||
weston_seat_init_keyboard(&input->base, keymap);
|
||||
if (input->base.keyboard)
|
||||
weston_seat_update_keymap(&input->base, keymap);
|
||||
else
|
||||
weston_seat_init_keyboard(&input->base, keymap);
|
||||
|
||||
xkb_map_unref(keymap);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue