diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2022-02-07 18:52:35 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2022-02-09 16:51:05 +0000 |
| commit | 56b948ca203d7f5685b5d59ecf794d9a6739c214 (patch) | |
| tree | 5b6e8d147368d94ef96ec5e32b191ff4e97c0624 /input.c | |
| parent | wayland: add wayl_bindings_reset() (diff) | |
input: call wayl_bindings_reset() when receiving a new keymap
Diffstat (limited to 'input.c')
| -rw-r--r-- | input.c | 10 |
1 files changed, 1 insertions, 9 deletions
@@ -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) { |
