From 291bb090474475f8a00dfe23335beaacf272f248 Mon Sep 17 00:00:00 2001 From: NishiOwO Date: Thu, 9 Apr 2026 00:35:04 +0900 Subject: [PATCH] disable XIM for now --- src/backend/x11.c | 4 ++++ src/core.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/backend/x11.c b/src/backend/x11.c index 0b9c1da..6593938 100644 --- a/src/backend/x11.c +++ b/src/backend/x11.c @@ -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); diff --git a/src/core.c b/src/core.c index 0d94c63..c8a5c12 100644 --- a/src/core.c +++ b/src/core.c @@ -2,7 +2,7 @@ #include "../external/stb_ds.h" -#define PERIODIC +// #define PERIODIC #define DRAW(handle) \ { \