aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) {
3917 long deltatime; 3917 long deltatime;
3918 3918
3919 /* Waiting for window mapping */ 3919 /* Waiting for window mapping */
3920 while(1) { 3920 do {
3921 XNextEvent(xw.dpy, &ev); 3921 XNextEvent(xw.dpy, &ev);
3922 if(XFilterEvent(&ev, None)) 3922 if(XFilterEvent(&ev, None))
3923 continue; 3923 continue;
3924 if(ev.type == ConfigureNotify) { 3924 if(ev.type == ConfigureNotify) {
3925 w = ev.xconfigure.width; 3925 w = ev.xconfigure.width;
3926 h = ev.xconfigure.height; 3926 h = ev.xconfigure.height;
3927 } else if(ev.type == MapNotify) {
3928 break;
3929 } 3927 }
3930 } 3928 } while(ev.type != MapNotify);
3931 3929
3932 ttynew(); 3930 ttynew();
3933 cresize(w, h); 3931 cresize(w, h);