aboutsummaryrefslogtreecommitdiff
path: root/input.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-12-02 20:32:09 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-12-02 20:32:09 +0000
commitf1c876884acb416120539fae6d51076f5ad61b0b (patch)
treef91da013e8df20613f34003f2c5373f2dbd96f45 /input.c
parentMerge branch 'fcft-0.2.0' (diff)
input: discard canceled compose sequences
Diffstat (limited to 'input.c')
-rw-r--r--input.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/input.c b/input.c
index 84a2f2e3..11b46cf6 100644
--- a/input.c
+++ b/input.c
@@ -318,6 +318,8 @@ keyboard_key(void *data, struct wl_keyboard *wl_keyboard, uint32_t serial,
count = xkb_compose_state_get_utf8(
wayl->kbd.xkb_compose_state, (char *)buf, sizeof(buf));
xkb_compose_state_reset(wayl->kbd.xkb_compose_state);
+ } else if (compose_status == XKB_COMPOSE_CANCELLED) {
+ goto maybe_repeat;
} else {
count = xkb_state_key_get_utf8(
wayl->kbd.xkb_state, key, (char *)buf, sizeof(buf));