aboutsummaryrefslogtreecommitdiffstats
path: root/layout.c
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@suckless.org>2007-05-24 16:25:09 +0200
committerAnselm R. Garbe <arg@suckless.org>2007-05-24 16:25:09 +0200
commitf3e672efd8d3efb05f7e7dc48fd87f3929c18932 (patch)
treef8657d5b5929b60270adbf8b9885707390e0dbe2 /layout.c
parent02d5dddc003b2e5af86754bf13783c0cdf193262 (diff)
downloaddwm-f3e672efd8d3efb05f7e7dc48fd87f3929c18932.tar.zst
fix if n < nmaster of remainer calculation for master windows
Diffstat (limited to 'layout.c')
-rw-r--r--layout.c2
1 files changed, 1 insertions, 1 deletions
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;
}