hello mr. suckless!
this patch against tip should make st support cjk input when using
ibus/scim/uim/whatever through xim
hope someone finds it useful byee~~~
the little girl
diff -r ba208156a8af st.c
--- a/st.c Tue Oct 09 19:40:37 2012 +0200
+++ b/st.c Thu Oct 25 01:15:28 2012 +0200
@@ -2541,9 +2541,11 @@
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;
}
}
@@ -2697,7 +2699,7 @@
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);
@@ -2772,6 +2774,7 @@
run:
setlocale(LC_CTYPE, "");
+ XSetLocaleModifiers("");
tnew(80, 24);
ttynew();
xinit();