This patch adds an option to rio, which disables automatic resizing of windows if the geometry of the underlying screen changes. Reference: /n/sources/patch/maybe/rio-noresize Date: Thu Sep 19 07:08:16 CES 2013 Signed-off-by: sstallion@gmail.com --- /sys/src/cmd/rio/rio.c Thu Sep 19 07:04:16 2013 +++ /sys/src/cmd/rio/rio.c Thu Sep 19 07:04:12 2013 @@ -149,6 +149,9 @@ if(kbdin == nil) usage(); break; + case 'R': + notresizing = TRUE; + break; case 's': scrolling = TRUE; break; @@ -623,10 +626,12 @@ if(w->deleted) continue; r = rectsubpt(w->i->r, viewr.min); - r.min.x = (r.min.x*n.x)/o.x; - 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(notresizing == 0){ + r.min.x = (r.min.x*n.x)/o.x; + 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; + } r = rectaddpt(r, screen->clipr.min); ishidden = 0; for(j=0; j