aewl
diff view.c @ 726:0f91934037b0
applied Sander's drop_bh patch
author | Anselm R. Garbe <arg@suckless.org> |
---|---|
date | Wed, 31 Jan 2007 20:08:55 +0100 |
parents | d3876aa79292 |
children | 6692d7e7e156 |
line diff
1.1 --- a/view.c Sun Jan 28 20:29:41 2007 +0100 1.2 +++ b/view.c Wed Jan 31 20:08:55 2007 +0100 1.3 @@ -98,11 +98,11 @@ 1.4 else { /* tile window */ 1.5 c->x += mw; 1.6 c->w = tw - 2 * BORDERPX; 1.7 - if(th - 2 * BORDERPX > bh) { 1.8 + if(th > 2 * BORDERPX) { 1.9 c->y += (i - nmaster) * th; 1.10 c->h = th - 2 * BORDERPX; 1.11 } 1.12 - else /* fallback if th - 2 * BORDERPX < bh */ 1.13 + else /* fallback if th <= 2 * BORDERPX */ 1.14 c->h = wah - 2 * BORDERPX; 1.15 } 1.16 resize(c, False); 1.17 @@ -150,7 +150,7 @@ 1.18 void 1.19 incnmaster(Arg *arg) { 1.20 if((arrange == dofloat) || (nmaster + arg->i < 1) 1.21 - || (wah / (nmaster + arg->i) - 2 * BORDERPX < bh)) 1.22 + || (wah / (nmaster + arg->i) <= 2 * BORDERPX)) 1.23 return; 1.24 nmaster += arg->i; 1.25 if(sel) 1.26 @@ -174,8 +174,8 @@ 1.27 if(arg->i == 0) 1.28 master = MASTER; 1.29 else { 1.30 - if(waw * (master + arg->i) / 1000 > waw - bh - 2 * BORDERPX 1.31 - || waw * (master + arg->i) / 1000 < bh + 2 * BORDERPX) 1.32 + if(waw * (master + arg->i) / 1000 >= waw - 2 * BORDERPX 1.33 + || waw * (master + arg->i) / 1000 <= 2 * BORDERPX) 1.34 return; 1.35 master += arg->i; 1.36 }