dwm

[fork] dynamic window manager
Log | Files | Refs | README | LICENSE

commit f3e672efd8d3efb05f7e7dc48fd87f3929c18932
parent 02d5dddc003b2e5af86754bf13783c0cdf193262
Author: Anselm R. Garbe <arg@suckless.org>
Date:   Thu, 24 May 2007 16:25:09 +0200

fix if n < nmaster of remainer calculation for master windows
Diffstat:
Mlayout.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/layout.c b/layout.c @@ -40,7 +40,7 @@ tile(void) { 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; }