mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-09 10:06:20 -05: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;
|
||||
}
|
||||
|
||||
tll_foreach(seat->kbd.bindings.key, it)
|
||||
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);
|
||||
wayl_bindings_reset(seat);
|
||||
|
||||
/* Verify keymap is in a format we understand */
|
||||
switch ((enum wl_keyboard_keymap_format)format) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue