diff options
author | Anselm R. Garbe <arg@suckless.org> | 2007-05-24 16:25:09 +0200 |
---|---|---|
committer | Anselm R. Garbe <arg@suckless.org> | 2007-05-24 16:25:09 +0200 |
commit | f3e672efd8d3efb05f7e7dc48fd87f3929c18932 (patch) | |
tree | f8657d5b5929b60270adbf8b9885707390e0dbe2 | |
parent | 02d5dddc003b2e5af86754bf13783c0cdf193262 (diff) | |
download | dwm-f3e672efd8d3efb05f7e7dc48fd87f3929c18932.tar dwm-f3e672efd8d3efb05f7e7dc48fd87f3929c18932.tar.gz dwm-f3e672efd8d3efb05f7e7dc48fd87f3929c18932.tar.bz2 |
fix if n < nmaster of remainer calculation for master windows
-rw-r--r-- | layout.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |