st
simple terminal
git clone https://9o.is/git/st.git
commit b7ab1ff9c22b9ce4108385874aa2f70ba1f2d2e1 parent af2a7d61f43bc508c57130a70647297573231307 Author: noname@inventati.org <noname@inventati.org> Date: Sat, 11 Apr 2015 12:18:57 +0200 Use do..while in window mapping loop. Diffstat:
| M | st.c | | | 6 | ++---- |
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/st.c b/st.c @@ -3917,17 +3917,15 @@ run(void) { long deltatime; /* Waiting for window mapping */ - while(1) { + do { XNextEvent(xw.dpy, &ev); if(XFilterEvent(&ev, None)) continue; if(ev.type == ConfigureNotify) { w = ev.xconfigure.width; h = ev.xconfigure.height; - } else if(ev.type == MapNotify) { - break; } - } + } while(ev.type != MapNotify); ttynew(); cresize(w, h);