]> git.armaanb.net Git - st.git/commitdiff
Remove unnecessary XFilterEvent call.
authornoname@inventati.org <noname@inventati.org>
Sat, 11 Apr 2015 10:15:51 +0000 (12:15 +0200)
committerRoberto E. Vargas Caballero <k0ga@shike2.com>
Mon, 13 Apr 2015 07:17:06 +0000 (09:17 +0200)
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.

st.c

diff --git a/st.c b/st.c
index 83acd56da9491558c4a29e70cebdd6afc9127d2e..c48132a738e9c479166d2ec96a07bf5c15ac7ac7 100644 (file)
--- a/st.c
+++ b/st.c
@@ -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;