diff options
author | noname@inventati.org <noname@inventati.org> | 2015-04-11 12:18:57 +0200 |
---|---|---|
committer | Roberto E. Vargas Caballero <k0ga@shike2.com> | 2015-04-13 09:15:42 +0200 |
commit | d3e0f3444b91418e3d3cda591c5d8c50caa22957 (patch) | |
tree | 66ac406be5a8b77927423dc0b17def87e54b5e51 | |
parent | ecac5ee35ef006001b280461ed3f9812d855250c (diff) | |
download | st-d3e0f3444b91418e3d3cda591c5d8c50caa22957.tar.gz |
Use do..while in window mapping loop.
-rw-r--r-- | st.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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); |