From 28b48d997cc1634866740b2626f10ba49ea2a44a Mon Sep 17 00:00:00 2001 From: Hojun-Cho Date: Thu, 28 May 2026 20:22:27 +0900 Subject: [PATCH] split wayland commit cycles --- wayland.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wayland.c b/wayland.c index 38942bc..4d60ce2 100644 --- a/wayland.c +++ b/wayland.c @@ -119,8 +119,10 @@ kpress(uint32_t time, uint32_t keycode, uint32_t state) } mod = mget(); sendkey(k, mod, com, sizeof(com), pre, sizeof(pre), &eaten); - if(com[0] != '\0') + if(com[0] != '\0'){ zwp_input_method_v2_commit_string(im, com); + zwp_input_method_v2_commit(im, imserial); + } plen = strlen(pre); zwp_input_method_v2_set_preedit_string(im, pre, plen, plen); zwp_input_method_v2_commit(im, imserial);