diff options
author | Christoph Lohmann <20h@r-36.net> | 2012-10-28 13:37:11 +0100 |
---|---|---|
committer | Christoph Lohmann <20h@r-36.net> | 2012-10-28 13:37:11 +0100 |
commit | 32173a11b434cb381dc30e7db1f83bb9c6032eca (patch) | |
tree | 4f637d15df3f96329304e3071e0065e005ca03a8 | |
parent | 7168d85f97abe826e2ba72ef5f3d32d9d4e30cdf (diff) | |
download | st-32173a11b434cb381dc30e7db1f83bb9c6032eca.tar.gz st-32173a11b434cb381dc30e7db1f83bb9c6032eca.tar.bz2 |
Applying the patch of the little girl <yui@blekksprut.net> to make cjk input
possible. Thanks!
-rw-r--r-- | st.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -2602,9 +2602,11 @@ xseturgency(int add) { void focus(XEvent *ev) { if(ev->type == FocusIn) { + XSetICFocus(xw.xic); xw.state |= WIN_FOCUSED; xseturgency(0); } else { + XUnsetICFocus(xw.xic); xw.state &= ~WIN_FOCUSED; } } @@ -2774,7 +2776,7 @@ run(void) { while(XPending(xw.dpy)) { XNextEvent(xw.dpy, &ev); - if(XFilterEvent(&ev, xw.win)) + if(XFilterEvent(&ev, None)) continue; if(handler[ev.type]) (handler[ev.type])(&ev); @@ -2849,6 +2851,7 @@ main(int argc, char *argv[]) { run: setlocale(LC_CTYPE, ""); + XSetLocaleModifiers(""); tnew(80, 24); xinit(); ttynew(); |