layout.c
changeset 867 067a7784150e
parent 861 55691060ffa3
child 870 21632814ba18
--- a/layout.c	Thu Apr 19 09:26:44 2007 +0200
+++ b/layout.c	Mon May 07 13:12:41 2007 +0200
@@ -46,7 +46,10 @@
 				nw = tw - 2 * c->border;
 				if(th > 2 * c->border) {
 					ny += (i - nmaster) * th;
-					nh = th - 2 * c->border;
+					if(i == n - 1)
+						nh = wah - ny - 2 * c->border;
+					else
+						nh = th - 2 * c->border;
 				}
 				else /* fallback if th <= 2 * c->border */
 					nh = wah - 2 * c->border;