input: call wayl_bindings_reset() when receiving a new keymap

This commit is contained in:
Daniel Eklöf 2022-02-07 19:52:35 +01:00
parent 026785b777
commit 56b948ca20
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

10
input.c
View file

@ -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) {