From 5cfd4a4c4c49ff88e2d55f3397443e3f936c67c0 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Thu, 23 Aug 2007 13:51:51 +0000 Subject: minimally working input method support! --- xlib.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'xlib.c') 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; -- cgit v1.2.3