From 7f7c1516876a0afacca2822e3e083c79551ad92c Mon Sep 17 00:00:00 2001 From: Sigrid Date: Sun, 6 Dec 2020 12:17:05 +0100 Subject: [PATCH] rio: allow windows as small as one line of text, still scrollable --- sys/src/cmd/rio/wctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/src/cmd/rio/wctl.c b/sys/src/cmd/rio/wctl.c index 59c9246c9..b4caa4ba4 100644 --- a/sys/src/cmd/rio/wctl.c +++ b/sys/src/cmd/rio/wctl.c @@ -95,7 +95,7 @@ goodrect(Rectangle r) return 0; if(Dy(r) > BIG*Dy(screen->r)) return 0; - if(Dx(r) < 100 || Dy(r) < 3*font->height) + if(Dx(r) < 100 || Dy(r) < 3*Borderwidth+font->height) return 0; /* window must be on screen */ if(!rectXrect(screen->r, r))