From 99cf4af9f8ce46b8138adcbf86376908fa06b56c Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Fri, 13 Oct 2006 10:51:24 +0000 Subject: better now, perhaps --- xlib.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'xlib.c') 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); -- cgit v1.2.3