Xinqi Bao's Git
projects
/
st.git
/ commitdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
|
inline
| side by side (parent:
b56a0da
)
Applying the patch of the little girl <
[email protected]
> to make cjk input
author
Christoph Lohmann <
[email protected]
>
Sun, 28 Oct 2012 12:37:11 +0000
(13:37 +0100)
committer
Christoph Lohmann <
[email protected]
>
Sun, 28 Oct 2012 12:37:11 +0000
(13:37 +0100)
possible. Thanks!
st.c
patch
|
blob
|
history
diff --git
a/st.c
b/st.c
index
ebc9962
..
c4ff67c
100644
(file)
--- a/
st.c
+++ b/
st.c
@@
-2602,9
+2602,11
@@
xseturgency(int add) {
void
focus(XEvent *ev) {
if(ev->type == FocusIn) {
void
focus(XEvent *ev) {
if(ev->type == FocusIn) {
+ XSetICFocus(xw.xic);
xw.state |= WIN_FOCUSED;
xseturgency(0);
} else {
xw.state |= WIN_FOCUSED;
xseturgency(0);
} else {
+ XUnsetICFocus(xw.xic);
xw.state &= ~WIN_FOCUSED;
}
}
xw.state &= ~WIN_FOCUSED;
}
}
@@
-2774,7
+2776,7
@@
run(void) {
while(XPending(xw.dpy)) {
XNextEvent(xw.dpy, &ev);
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);
continue;
if(handler[ev.type])
(handler[ev.type])(&ev);
@@
-2849,6
+2851,7
@@
main(int argc, char *argv[]) {
run:
setlocale(LC_CTYPE, "");
run:
setlocale(LC_CTYPE, "");
+ XSetLocaleModifiers("");
tnew(80, 24);
xinit();
ttynew();
tnew(80, 24);
xinit();
ttynew();