1 /* A vertical stack layout, all windows have the full screen width. */
2 static void vstack(void)
4 unsigned int i
, n
, ny
, nh
, mh
, th
;
7 for (n
= 0, c
= nextvisible(clients
); c
; c
= nextvisible(c
->next
))
11 mh
= n
<= 1 ? wah
: screen
.mfact
* wah
;
12 th
= n
<= 1 ? 0 : (wah
- mh
) / (n
- 1);
15 for (i
= 0, c
= nextvisible(clients
); c
; c
= nextvisible(c
->next
)) {
18 if (i
== 0) /* master */
20 else /* tile window */
21 nh
= (i
< n
- 1) ? th
: (way
+ wah
) - ny
;
22 resize(c
, wax
, ny
, waw
, nh
);