winwatch: this is not about sanity. rows might be negative
This commit is contained in:
parent
8319457a10
commit
a872d5241e
1 changed files with 1 additions and 1 deletions
|
@ -188,7 +188,7 @@ geometry(void)
|
|||
|
||||
z = 0;
|
||||
rows = (Dy(screen->r)-2*MARGIN+PAD)/(font->height+PAD);
|
||||
if(rows == 0)
|
||||
if(rows <= 0)
|
||||
rows = 1;
|
||||
if(rows*cols < nwin || rows*cols >= nwin*2){
|
||||
ncols = nwin <= 0 ? 1 : (nwin+rows-1)/rows;
|
||||
|
|
Loading…
Reference in a new issue