[hackers] [st] Revert "Remove unnecessary XFilterEvent call." || Weng Xuetian

From: <git_AT_suckless.org>
Date: Thu, 2 Jul 2015 11:19:07 +0200 (CEST)

commit 5f48e89716a74e75b6040fdb067372180626b699
Author: Weng Xuetian <wengxt_AT_gmail.com>
AuthorDate: Thu Jul 2 08:31:12 2015 +0200
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Thu Jul 2 11:11:55 2015 +0200

    Revert "Remove unnecessary XFilterEvent call."
    
    This reverts commit d2937b05aed9cee8d6651cd806d31682a853c773.

diff --git a/st.c b/st.c
index bb64c55..b89d094 100644
--- a/st.c
+++ b/st.c
_AT_@ -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;
Received on Thu Jul 02 2015 - 11:19:07 CEST

This archive was generated by hypermail 2.3.0 : Thu Jul 02 2015 - 11:24:10 CEST