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
= clients
; c
&& !c
->minimized
; c
= c
->next
, n
++);
9 mh
= n
<= 1 ? wah
: screen
.mfact
* wah
;
10 th
= n
<= 1 ? 0 : (wah
- mh
) / (n
- 1);
13 for (i
= 0, c
= clients
; c
&& !c
->minimized
; c
= c
->next
, i
++) {
14 if (i
== 0) /* master */
16 else /* tile window */
17 nh
= (i
< n
- 1) ? th
: (way
+ wah
) - ny
;
18 resize(c
, wax
, ny
, waw
, nh
);