Introduction
Introduction Statistics Contact Development Disclaimer Help
tApplying the patch of the little girl <[email protected]> to make cjk input -…
git clone git://src.adamsgaard.dk/st
Log
Files
Refs
README
LICENSE
---
commit c5dd7fb377d4bfe9988ef150a55b4a3756d09524
parent b56a0da283bd09d5084f472353c1a0b1b084613e
Author: Christoph Lohmann <[email protected]>
Date: Sun, 28 Oct 2012 13:37:11 +0100
Applying the patch of the little girl <[email protected]> to make cjk input
possible. Thanks!
Diffstat:
M st.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/st.c b/st.c
t@@ -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;
}
}
t@@ -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);
t@@ -2849,6 +2851,7 @@ main(int argc, char *argv[]) {
run:
setlocale(LC_CTYPE, "");
+ XSetLocaleModifiers("");
tnew(80, 24);
xinit();
ttynew();
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.