[hackers] [st] Fix st with input method. || Weng Xuetian

From: <git_AT_suckless.org>
Date: Sat, 19 Jul 2014 19:53:53 +0200

commit 84ceefe0890ee235dd736543fe30479393562fb6
Author: Weng Xuetian <wengxt_AT_gmail.com>
Date: Wed Jul 16 18:36:46 2014 -0400

    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_AT_shike2.com>

diff --git a/st.c b/st.c
index 040638a..546db41 100644
--- a/st.c
+++ b/st.c
_AT_@ -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;
Received on Sat Jul 19 2014 - 19:53:53 CEST

This archive was generated by hypermail 2.3.0 : Sat Jul 19 2014 - 20:00:16 CEST