[dev] [st] [PATCH 2/2] Remove unnecessary XFilterEvent call.

From: noname <noname_AT_inventati.org>
Date: Sat, 11 Apr 2015 10:15:34 +0000

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 | 2 --
 1 file changed, 2 deletions(-)
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;
-- 
2.3.5
Received on Sat Apr 11 2015 - 12:15:34 CEST

This archive was generated by hypermail 2.3.0 : Sat Apr 11 2015 - 12:24:12 CEST