shithub: riscv

Download patch

ref: 8b9f36dbe240da519113ac7d3473322321320b19
parent: 02f37359b09972ced1ed1061bd2a5a0aa65b2d09
author: cinap_lenrek <[email protected]>
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)