shithub: riscv

Download patch

ref: 7d55aa8a32112a689ad0d41b876efe335d0b1115
parent: c931e96364ec6e587f9137e768ad0f9b70e2e9fa
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Tue Dec 1 19:53:58 EST 2020

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.

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