diff options
author | Rich Felker <dalias@aerifal.cx> | 2006-10-13 10:51:24 +0000 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2006-10-13 10:51:24 +0000 |
commit | 99cf4af9f8ce46b8138adcbf86376908fa06b56c (patch) | |
tree | 3b7819b7354d74465cd4d0fe0ca263bb61e1fce5 | |
parent | b79176f49a543a892769f0d0a292841a02418025 (diff) |
better now, perhaps
-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); |