input: reset compose state on key *releases*, not presses

This commit is contained in:
Daniel Eklöf 2021-11-29 20:12:49 +01:00
parent 6b9b03b8dd
commit 660626118a
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -1639,7 +1639,7 @@ key_press_release(struct seat *seat, struct terminal *term, uint32_t serial,
? kitty_kbd_protocol(seat, term, &ctx)
: legacy_kbd_protocol(seat, term, &ctx);
if (seat->kbd.xkb_compose_state != NULL && pressed)
if (seat->kbd.xkb_compose_state != NULL && released)
xkb_compose_state_reset(seat->kbd.xkb_compose_state);
if (utf8 != buf)