input: reset XKB compose state on keyboard leave

This commit is contained in:
Daniel Eklöf 2020-01-14 19:32:02 +01:00
parent 493a7a3202
commit c645a4b180
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -155,6 +155,7 @@ keyboard_leave(void *data, struct wl_keyboard *wl_keyboard, uint32_t serial,
wayl->kbd.alt = false;;
wayl->kbd.ctrl = false;;
wayl->kbd.meta = false;;
xkb_compose_state_reset(wayl->kbd.xkb_compose_state);
if (old_focused != NULL) {
term_kbd_focus_out(old_focused);