git: 9front

Download patch

ref: e739b366ca1c413674fcffc97fff5d66e471da51
parent: e0745d0e8dcbb020e6b5debb46d8dcc24a1d6fc7
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Tue Mar 15 18:06:11 EDT 2016

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

--- a/sys/src/cmd/rio/rio.c
+++ b/sys/src/cmd/rio/rio.c
@@ -419,9 +419,9 @@
 		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);
 	}
 }
--- a/sys/src/cmd/rio/wind.c
+++ b/sys/src/cmd/rio/wind.c
@@ -109,6 +109,7 @@
 	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 @@
 		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)
--