+ tileresize(mc, MX, MY, (MW) - 2 * mc->border, (MH) - 2 * mc->border);
+ return n - 1;
+}
+
+void
+tilev(void) {
+ tilevstack(tilemaster());
+}
+
+void
+tilevstack(unsigned int n) {
+ int i, y, h;
+ Client *c;
+
+ if(n == 0)
+ return;
+
+ y = TY;
+ h = (TH) / n;
+ if(h < bh)
+ h = TH;
+
+ for(i = 0, c = nexttiled(clients); c; c = nexttiled(c->next), i++)
+ if(i > 0) {
+ if(i > 1 && i == n) /* remainder */
+ tileresize(c, TX, y, (TW) - 2 * c->border,
+ ((TY) + (TH)) - y - 2 * c->border);
+ else
+ tileresize(c, TX, y, (TW) - 2 * c->border,
+ h - 2 * c->border);
+ if(h != TH)
+ y = c->y + c->h + 2 * c->border;
+ }