mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-09 05:33:58 -04:00
input: reset compose state on key *releases*, not presses
This commit is contained in:
parent
5d94b02a03
commit
149e978bc4
1 changed files with 1 additions and 1 deletions
2
input.c
2
input.c
|
|
@ -1634,7 +1634,7 @@ key_press_release(struct seat *seat, struct terminal *term, uint32_t serial,
|
||||||
? kitty_kbd_protocol(seat, term, &ctx)
|
? kitty_kbd_protocol(seat, term, &ctx)
|
||||||
: legacy_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);
|
xkb_compose_state_reset(seat->kbd.xkb_compose_state);
|
||||||
|
|
||||||
if (utf8 != buf)
|
if (utf8 != buf)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue