From: Weng Xuetian Date: Wed, 16 Jul 2014 22:36:46 +0000 (-0400) Subject: Fix st with input method. X-Git-Url: https://git.danieliu.xyz/?a=commitdiff_plain;h=84ceefe0890ee235dd736543fe30479393562fb6;p=st.git 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 --- 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;