Fix Bantam Apps menu entry, st XIM focus, and fcitx5-t9 InputContextDestroyed crash
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user