about summary refs log tree commit diff stats
path: root/layout.c
diff options
context:
space:
mode:
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;
 			}
>95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125