Introduction
Introduction Statistics Contact Development Disclaimer Help
tUse do..while in window mapping loop. - st - [fork] customized build of st, th…
git clone git://src.adamsgaard.dk/st
Log
Files
Refs
README
LICENSE
---
commit d3e0f3444b91418e3d3cda591c5d8c50caa22957
parent ecac5ee35ef006001b280461ed3f9812d855250c
Author: [email protected] <[email protected]>
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
t@@ -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);
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.