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.
This commit is contained in:
parent
c931e96364
commit
7d55aa8a32
1 changed files with 1 additions and 0 deletions
|
@ -129,6 +129,7 @@ wrefresh(Window *w)
|
||||||
wborder(w, Unselborder);
|
wborder(w, Unselborder);
|
||||||
r = insetrect(w->i->r, Selborder);
|
r = insetrect(w->i->r, Selborder);
|
||||||
draw(w->i, r, w->cols[BACK], nil, w->entire.min);
|
draw(w->i, r, w->cols[BACK], nil, w->entire.min);
|
||||||
|
wfill(w);
|
||||||
w->ticked = 0;
|
w->ticked = 0;
|
||||||
if(w->p0 > 0)
|
if(w->p0 > 0)
|
||||||
frdrawsel(w, frptofchar(w, 0), 0, w->p0, 0);
|
frdrawsel(w, frptofchar(w, 0), 0, w->p0, 0);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue