all repos — dwm @ f3e672efd8d3efb05f7e7dc48fd87f3929c18932

my dwm build

fix if n < nmaster of remainer calculation for master windows
Anselm R. Garbe arg@suckless.org
Thu, 24 May 2007 16:25:09 +0200
commit

f3e672efd8d3efb05f7e7dc48fd87f3929c18932

parent

02d5dddc003b2e5af86754bf13783c0cdf193262

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M layout.clayout.c

@@ -40,7 +40,7 @@ if(i < nmaster) {

ny += i * mh; nw = mw - 2 * c->border; nh = mh; - if(i + 1 == nmaster) /* remainder */ + if(i + 1 == (n < nmaster ? n : nmaster)) /* remainder */ nh = wah - mh * i; nh -= 2 * c->border; }