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);