mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-26 07:57:59 -04:00
input: call wayl_bindings_reset() when receiving a new keymap
This commit is contained in:
parent
026785b777
commit
56b948ca20
1 changed files with 1 additions and 9 deletions
10
input.c
10
input.c
|
|
@ -624,15 +624,7 @@ keyboard_keymap(void *data, struct wl_keyboard *wl_keyboard,
|
||||||
seat->kbd.xkb = NULL;
|
seat->kbd.xkb = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
tll_foreach(seat->kbd.bindings.key, it)
|
wayl_bindings_reset(seat);
|
||||||
tll_free(it->item.k.key_codes);
|
|
||||||
tll_free(seat->kbd.bindings.key);
|
|
||||||
|
|
||||||
tll_foreach(seat->kbd.bindings.search, it)
|
|
||||||
tll_free(it->item.k.key_codes);
|
|
||||||
tll_free(seat->kbd.bindings.search);
|
|
||||||
|
|
||||||
tll_free(seat->mouse.bindings);
|
|
||||||
|
|
||||||
/* Verify keymap is in a format we understand */
|
/* Verify keymap is in a format we understand */
|
||||||
switch ((enum wl_keyboard_keymap_format)format) {
|
switch ((enum wl_keyboard_keymap_format)format) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue