fix: preserve emoji commits through XIM

This commit is contained in:
2026-08-12 16:40:58 +09:00
parent 3f5e107230
commit 71af269efe
5 changed files with 62 additions and 3 deletions

View File

@@ -8,6 +8,7 @@
#include <xcb-imdkit/encoding.h>
#include "ipc.h"
#include "keymap.h"
#include "ximtext.h"
typedef struct Ic Ic;
struct Ic
@@ -97,7 +98,7 @@ commit(xcb_im_input_context_t *ic, char *s, int len)
if(len == 0)
return;
ct = xcb_utf8_to_compound_text(s, len, &clen);
ct = ximcompound(s, len, &clen);
if(ct == NULL)
return;
xcb_im_commit_string(xim, ic, XCB_XIM_LOOKUP_CHARS, ct, clen, 0);