From f3e672efd8d3efb05f7e7dc48fd87f3929c18932 Mon Sep 17 00:00:00 2001 From: Anselm R. Garbe Date: Thu, 24 May 2007 16:25:09 +0200 Subject: fix if n < nmaster of remainer calculation for master windows --- layout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layout.c b/layout.c index 0865050..4b4e908 100644 --- 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; } -- cgit v1.2.3