aboutsummaryrefslogtreecommitdiff
path: root/st.c
diff options
context:
space:
mode:
authornoname@inventati.org <noname@inventati.org>2015-04-11 12:18:57 +0200
committerRoberto E. Vargas Caballero <k0ga@shike2.com>2015-04-13 09:15:42 +0200
commitd3e0f3444b91418e3d3cda591c5d8c50caa22957 (patch)
tree66ac406be5a8b77927423dc0b17def87e54b5e51 /st.c
parentecac5ee35ef006001b280461ed3f9812d855250c (diff)
downloadst-d3e0f3444b91418e3d3cda591c5d8c50caa22957.tar.gz
st-d3e0f3444b91418e3d3cda591c5d8c50caa22957.tar.bz2
st-d3e0f3444b91418e3d3cda591c5d8c50caa22957.zip
Use do..while in window mapping loop.
Diffstat (limited to 'st.c')
-rw-r--r--st.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/st.c b/st.c
index b2bcfe9..83acd56 100644
--- 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);