summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWeng Xuetian <wengxt@gmail.com>2014-07-16 18:36:46 -0400
committerRoberto E. Vargas Caballero <k0ga@shike2.com>2014-07-19 19:46:31 +0200
commit84ceefe0890ee235dd736543fe30479393562fb6 (patch)
treedbcaed75f133e6adc69fe76884393a0554fb21a4
parentb5d0a13c10ab6ba6121c5fa67b9f20c8d41de349 (diff)
Fix st with input method.
XFilterEvent need to be called against every event, otherwise it would missing some message in the xim protocol and misbehave on some im server. Signed-off-by: Roberto E. Vargas Caballero <k0ga@shike2.com>
-rw-r--r--st.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/st.c b/st.c
index 040638a..546db41 100644
--- a/st.c
+++ b/st.c
@@ -3786,6 +3786,8 @@ run(void) {
/* Waiting for window mapping */
while(1) {
XNextEvent(xw.dpy, &ev);
+ if(XFilterEvent(&ev, None))
+ continue;
if(ev.type == ConfigureNotify) {
w = ev.xconfigure.width;
h = ev.xconfigure.height;