rio: flushimage() improves your ability to see, i repeat twice.

This commit is contained in:
cinap_lenrek 2016-03-15 22:06:11 +01:00
parent 02f37359b0
commit 8b9f36dbe2
2 changed files with 3 additions and 3 deletions

View file

@ -419,9 +419,9 @@ deletethread(void*)
if(i != nil){
/* move it off-screen to hide it, since client is slow in letting it go */
originwindow(i, i->r.min, view->r.max);
freeimage(i);
flushimage(display, 1);
}
freeimage(i);
flushimage(display, 1);
free(s);
}
}

View file

@ -109,6 +109,7 @@ wresize(Window *w, Image *i)
wsetselect(w, w->q0, w->q1);
wscrdraw(w);
wborder(w, Selborder);
flushimage(display, 1);
wsetname(w);
w->topped = ++topped;
w->resized = TRUE;
@ -1126,7 +1127,6 @@ wctlmesg(Window *w, int m, Rectangle r, void *p)
w->screenr = r;
strcpy(buf, w->name);
wresize(w, i);
flushimage(display, 1);
proccreate(deletetimeoutproc, estrdup(buf), 4096);
if(Dx(r)<=0){ /* window got hidden, if we had the input, drop it */
if(w==input)