fix: preserve emoji commits through XIM
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user