pinosaur
/
st.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bdd649a
)
Revert "Remove unnecessary XFilterEvent call."
author
Weng Xuetian
<wengxt@gmail.com>
Thu, 2 Jul 2015 06:31:12 +0000
(08:31 +0200)
committer
Roberto E. Vargas Caballero
<k0ga@shike2.com>
Thu, 2 Jul 2015 09:11:55 +0000
(11:11 +0200)
This reverts commit
d2937b05aed9cee8d6651cd806d31682a853c773
.
st.c
patch
|
blob
|
history
diff --git
a/st.c
b/st.c
index
bb64c55
..
b89d094
100644
(file)
--- a/
st.c
+++ b/
st.c
@@
-3912,6
+3912,13
@@
run(void) {
/* Waiting for window mapping */
do {
XNextEvent(xw.dpy, &ev);
+ /*
+ * XFilterEvent is required to be called after you using XOpenIM,
+ * this is not unnecessary.It does not only filter the key event,
+ * but some clientmessage for input method as well.
+ */
+ if(XFilterEvent(&ev, None))
+ continue;
if(ev.type == ConfigureNotify) {
w = ev.xconfigure.width;
h = ev.xconfigure.height;