From 20c27e0197f1907327b69b6ffbb1b1793dd25a58 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Tue, 13 Mar 2012 08:14:55 +0100 Subject: [PATCH] rio: keep window rects managable on rio resize --- sys/src/cmd/rio/rio.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/src/cmd/rio/rio.c b/sys/src/cmd/rio/rio.c index 891504737..602fab43b 100644 --- a/sys/src/cmd/rio/rio.c +++ b/sys/src/cmd/rio/rio.c @@ -633,6 +633,8 @@ resized(void) r.min.y = (r.min.y*n.y)/o.y; r.max.x = (r.max.x*n.x)/o.x; r.max.y = (r.max.y*n.y)/o.y; + if(!goodrect(r)) + r = rectsubpt(w->i->r, viewr.min); r = rectaddpt(r, screen->clipr.min); ishidden = 0; for(j=0; j