rio: allow windows as small as one line of text, still scrollable
This commit is contained in:
parent
ecb12c8718
commit
7f7c151687
1 changed files with 1 additions and 1 deletions
|
@ -95,7 +95,7 @@ goodrect(Rectangle r)
|
||||||
return 0;
|
return 0;
|
||||||
if(Dy(r) > BIG*Dy(screen->r))
|
if(Dy(r) > BIG*Dy(screen->r))
|
||||||
return 0;
|
return 0;
|
||||||
if(Dx(r) < 100 || Dy(r) < 3*font->height)
|
if(Dx(r) < 100 || Dy(r) < 3*Borderwidth+font->height)
|
||||||
return 0;
|
return 0;
|
||||||
/* window must be on screen */
|
/* window must be on screen */
|
||||||
if(!rectXrect(screen->r, r))
|
if(!rectXrect(screen->r, r))
|
||||||
|
|
Loading…
Reference in a new issue