diff options
-rw-r--r-- | xlib.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -112,8 +112,11 @@ int uudisp_open(struct uudisp *d) XMapWindow(p->display, p->window); - //XSetLocaleModifiers("@im=none"); p->im = XOpenIM(p->display, 0, 0, 0); + if (!p->im) { + XSetLocaleModifiers("@im=none"); + p->im = XOpenIM(p->display, 0, 0, 0); + } if (p->im) p->ic = XCreateIC(p->im, XNInputStyle, XIMPreeditNothing|XIMStatusNothing, NULL); resize_window(d, px_w, px_h); |