Re: [dev] [st] [PATCH 2/2] Simplify window mapping loop.

2015-04-10 Thread Roberto E. Vargas Caballero
> XFilterEvent usually filters KeyPress events that are hooked by input > method, but at this point the window is not mapped so it is impossible > to press keys in the terminal. > > Calling XFilterEvent would only be useful if input methods filtered > ConfigureNotify or MapNotify events. I don't t

Re: [dev] [st] [PATCH 2/2] Simplify window mapping loop.

2015-04-10 Thread noname
On Fri, Apr 10, 2015 at 05:41:16PM +0200, Roberto E. Vargas Caballero wrote: > > - if(XFilterEvent(&ev, None)) > > - continue; > > Why are you removing the call to XFilterEvent here? XFilterEvent usually filters KeyPress events that are hooked by input method, but at t

[dev] [st] [PATCH 2/2] Simplify window mapping loop.

2015-04-09 Thread noname
--- st.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/st.c b/st.c index a7064b1..c311164 100644 --- a/st.c +++ b/st.c @@ -3917,17 +3917,13 @@ run(void) { long deltatime; /* Waiting for window mapping */ - while(1) { + do {