summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2007-08-23 13:51:51 +0000
committerRich Felker <dalias@aerifal.cx>2007-08-23 13:51:51 +0000
commit5cfd4a4c4c49ff88e2d55f3397443e3f936c67c0 (patch)
tree06c5e4884a4721472e7bf31944174141caadd1dd
parent1a373869b5a4671bb503590f602a2b043cc7d3c5 (diff)
downloaduuterm-5cfd4a4c4c49ff88e2d55f3397443e3f936c67c0.tar.gz
minimally working input method support!
-rw-r--r--xlib.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/xlib.c b/xlib.c
index 4dce890..63ba063 100644
--- a/xlib.c
+++ b/xlib.c
@@ -114,12 +114,16 @@ int uudisp_open(struct uudisp *d)
XMapWindow(p->display, p->window);
+ XSetLocaleModifiers("");
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);
+ if (p->im) p->ic = XCreateIC(p->im,
+ XNInputStyle, XIMPreeditNothing|XIMStatusNothing,
+ XNClientWindow, p->window,
+ NULL);
if (p->ic) XGetICValues(p->ic, XNFilterEvents, &fevent, NULL);
else fevent = 0;