Explorar o código

fix if n < nmaster of remainer calculation for master windows

Anselm R. Garbe %!s(int64=18) %!d(string=hai) anos
pai
achega
f3e672efd8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      layout.c

+ 1 - 1
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;
 			}