|
@ -3917,17 +3917,15 @@ run(void) { |
|
|
long deltatime; |
|
|
long deltatime; |
|
|
|
|
|
|
|
|
/* Waiting for window mapping */ |
|
|
/* Waiting for window mapping */ |
|
|
while(1) { |
|
|
|
|
|
|
|
|
do { |
|
|
XNextEvent(xw.dpy, &ev); |
|
|
XNextEvent(xw.dpy, &ev); |
|
|
if(XFilterEvent(&ev, None)) |
|
|
if(XFilterEvent(&ev, None)) |
|
|
continue; |
|
|
continue; |
|
|
if(ev.type == ConfigureNotify) { |
|
|
if(ev.type == ConfigureNotify) { |
|
|
w = ev.xconfigure.width; |
|
|
w = ev.xconfigure.width; |
|
|
h = ev.xconfigure.height; |
|
|
h = ev.xconfigure.height; |
|
|
} else if(ev.type == MapNotify) { |
|
|
|
|
|
break; |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} while(ev.type != MapNotify); |
|
|
|
|
|
|
|
|
ttynew(); |
|
|
ttynew(); |
|
|
cresize(w, h); |
|
|
cresize(w, h); |
|
|