summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSigrid <ftrvxmtrx@gmail.com>2020-12-06 12:17:05 +0100
committerSigrid <ftrvxmtrx@gmail.com>2020-12-06 12:17:05 +0100
commit7f7c1516876a0afacca2822e3e083c79551ad92c (patch)
tree159adc55cdc62875e322944f72658e3a2a70c0a5
parentecb12c87187a37a74f77aff45ffece9f7e985658 (diff)
downloadplan9front-7f7c1516876a0afacca2822e3e083c79551ad92c.tar.xz
rio: allow windows as small as one line of text, still scrollable
-rw-r--r--sys/src/cmd/rio/wctl.c2
1 files changed, 1 insertions, 1 deletions
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))