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@shike2.com>
This commit is contained in:
Weng Xuetian 2014-07-16 18:36:46 -04:00 committed by Roberto E. Vargas Caballero
parent b5d0a13c10
commit 84ceefe089

2
st.c
View file

@ -3786,6 +3786,8 @@ run(void) {
/* Waiting for window mapping */ /* Waiting for window mapping */
while(1) { while(1) {
XNextEvent(xw.dpy, &ev); XNextEvent(xw.dpy, &ev);
if(XFilterEvent(&ev, None))
continue;
if(ev.type == ConfigureNotify) { if(ev.type == ConfigureNotify) {
w = ev.xconfigure.width; w = ev.xconfigure.width;
h = ev.xconfigure.height; h = ev.xconfigure.height;