summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2020-12-02 00:53:58 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2020-12-02 00:53:58 +0100
commit7d55aa8a32112a689ad0d41b876efe335d0b1115 (patch)
tree1fb2ac8d92a60528685679cfc1b9577c24ed0f2d
parentc931e96364ec6e587f9137e768ad0f9b70e2e9fa (diff)
downloadplan9front-7d55aa8a32112a689ad0d41b876efe335d0b1115.tar.xz
rio: properly restore the windows contents on /dev/mouse close
The previous resize optimization now means that the wfill() is skipped on resize for libdraw programs. So do it once /dev/mouse is closed and the window processes the Refresh message.
-rw-r--r--sys/src/cmd/rio/wind.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/src/cmd/rio/wind.c b/sys/src/cmd/rio/wind.c
index b2391cabb..9734fd18f 100644
--- a/sys/src/cmd/rio/wind.c
+++ b/sys/src/cmd/rio/wind.c
@@ -129,6 +129,7 @@ wrefresh(Window *w)
wborder(w, Unselborder);
r = insetrect(w->i->r, Selborder);
draw(w->i, r, w->cols[BACK], nil, w->entire.min);
+ wfill(w);
w->ticked = 0;
if(w->p0 > 0)
frdrawsel(w, frptofchar(w, 0), 0, w->p0, 0);