summaryrefslogtreecommitdiff
path: root/xlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlib.c')
-rw-r--r--xlib.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/xlib.c b/xlib.c
index 3d0d2dc..68faaf5 100644
--- a/xlib.c
+++ b/xlib.c
@@ -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);