summaryrefslogtreecommitdiff
path: root/sys/src/cmd
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2016-03-15 22:06:11 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2016-03-15 22:06:11 +0100
commit8b9f36dbe240da519113ac7d3473322321320b19 (patch)
treed9474a8ed1e50e07268bcbbb06f9c38efd38a2b8 /sys/src/cmd
parent02f37359b09972ced1ed1061bd2a5a0aa65b2d09 (diff)
rio: flushimage() improves your ability to see, i repeat twice.
Diffstat (limited to 'sys/src/cmd')
-rw-r--r--sys/src/cmd/rio/rio.c4
-rw-r--r--sys/src/cmd/rio/wind.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/sys/src/cmd/rio/rio.c b/sys/src/cmd/rio/rio.c
index 5c99afd45..7f5d5b196 100644
--- a/sys/src/cmd/rio/rio.c
+++ b/sys/src/cmd/rio/rio.c
@@ -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);
}
}
diff --git a/sys/src/cmd/rio/wind.c b/sys/src/cmd/rio/wind.c
index 026e67927..53365576f 100644
--- a/sys/src/cmd/rio/wind.c
+++ b/sys/src/cmd/rio/wind.c
@@ -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)