rio: allow windows as small as one line of text, still scrollable

This commit is contained in:
Sigrid 2020-12-06 12:17:05 +01:00
parent ecb12c8718
commit 7f7c151687

View file

@ -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))