From 7d55aa8a32112a689ad0d41b876efe335d0b1115 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Wed, 2 Dec 2020 00:53:58 +0100 Subject: 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. --- sys/src/cmd/rio/wind.c | 1 + 1 file changed, 1 insertion(+) 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); -- cgit v1.2.3