fix if n < nmaster of remainer calculation for master windows

pull/1/head
Anselm R. Garbe 18 years ago
parent 02d5dddc00
commit f3e672efd8
  1. 2
      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;
}

Loading…
Cancel
Save