diff options
author | Rich Felker <dalias@aerifal.cx> | 2007-08-23 13:51:51 +0000 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2007-08-23 13:51:51 +0000 |
commit | 5cfd4a4c4c49ff88e2d55f3397443e3f936c67c0 (patch) | |
tree | 06c5e4884a4721472e7bf31944174141caadd1dd | |
parent | 1a373869b5a4671bb503590f602a2b043cc7d3c5 (diff) |
minimally working input method support!
-rw-r--r-- | xlib.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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; |