[hackers] [st] Remove unnecessary XFilterEvent call. || noname_AT_inventati.org

From: <git_AT_suckless.org>
Date: Tue, 14 Apr 2015 09:56:42 +0200 (CEST)

commit d2937b05aed9cee8d6651cd806d31682a853c773
Author: noname_AT_inventati.org <noname_AT_inventati.org>
Date: Sat Apr 11 12:15:51 2015 +0200

    Remove unnecessary XFilterEvent call.
    
    XFilterEvent usually filters KeyPress events according to input method.
    At this point the window is not mapped. The only events that we process
    are ConfigureNotify and MapNotify. They should not be filtered by input
    method.

diff --git a/st.c b/st.c
index 83acd56..c48132a 100644
--- a/st.c
+++ b/st.c
_AT_@ -3919,8 +3919,6 @@ run(void) {
         /* Waiting for window mapping */
         do {
                 XNextEvent(xw.dpy, &ev);
- if(XFilterEvent(&ev, None))
- continue;
                 if(ev.type == ConfigureNotify) {
                         w = ev.xconfigure.width;
                         h = ev.xconfigure.height;
Received on Tue Apr 14 2015 - 09:56:42 CEST

This archive was generated by hypermail 2.3.0 : Tue Apr 14 2015 - 10:00:18 CEST