split wayland commit cycles

This commit is contained in:
2026-05-28 20:22:27 +09:00
parent f4347b70cc
commit 28b48d997c

View File

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