disable XIM for now

This commit is contained in:
Nishi 2026-04-09 00:35:04 +09:00
commit 291bb09047
Signed by: nishi
GPG key ID: 27EF69B208EB9343
2 changed files with 5 additions and 1 deletions

View file

@ -367,6 +367,7 @@ static MwLL MwLLCreateImpl(MwLL parent, int x, int y, int width, int height) {
XFree(xvi);
#ifdef DO_XIM
XSetLocaleModifiers("");
if((r->x11.xim = XOpenIM(r->x11.display, 0, 0, 0)) == NULL) {
XSetLocaleModifiers("@im=none");
@ -379,6 +380,7 @@ static MwLL MwLLCreateImpl(MwLL parent, int x, int y, int width, int height) {
XNFocusWindow, r->x11.window,
NULL);
XSetICFocus(r->x11.xic);
#endif
r->common.copy_buffer = 1;
r->common.type = MwLLBackendX11;
@ -433,8 +435,10 @@ static MwLL MwLLCreateImpl(MwLL parent, int x, int y, int width, int height) {
static void MwLLDestroyImpl(MwLL handle) {
MwLLDestroyCommon(handle);
#ifdef DO_XIM
if(handle->x11.xic) XDestroyIC(handle->x11.xic);
if(handle->x11.xim) XCloseIM(handle->x11.xim);
#endif
destroy_pixmap(handle);
XFreeGC(handle->x11.display, handle->x11.gc);

View file

@ -2,7 +2,7 @@
#include "../external/stb_ds.h"
#define PERIODIC
// #define PERIODIC
#define DRAW(handle) \
{ \