Fix Bantam Apps menu entry, st XIM focus, and fcitx5-t9 InputContextDestroyed crash

This commit is contained in:
Luxferre
2026-10-22 16:10:56 +03:00
parent 6e58218e10
commit 4e503d0654
13 changed files with 49 additions and 16 deletions
+5
View File
@@ -1118,11 +1118,14 @@ ximopen(Display *dpy)
xw.ime.xic = XCreateIC(xw.ime.xim, XNInputStyle,
XIMPreeditNothing | XIMStatusNothing,
XNClientWindow, xw.win,
XNFocusWindow, xw.win,
XNDestroyCallback, &icdestroy,
NULL);
}
if (xw.ime.xic == NULL)
fprintf(stderr, "XCreateIC: Could not create input context.\n");
else if (win.mode & MODE_FOCUSED)
XSetICFocus(xw.ime.xic);
return 1;
}
@@ -1981,6 +1984,8 @@ run(void)
if (ev.type == ConfigureNotify) {
w = ev.xconfigure.width;
h = ev.xconfigure.height;
} else if (ev.type == FocusIn || ev.type == FocusOut) {
focus(&ev);
}
} while (ev.type != MapNotify);