3 unsigned int i
, m
, n
, nx
, ny
, nw
, nh
, nm
, mw
, th
;
6 for(n
= 0, m
= 0, c
= clients
; c
; c
= c
->next
, n
++)
11 mw
= (n
== 1 || n
- 1 == m
) ? waw
: screen
.mfact
* waw
;
12 /* check if there are at least 2 non minimized clients */
14 th
= (wah
- m
) / (nm
- 1);
18 for(i
= 0, c
= clients
; c
; c
= c
->next
, i
++) {
19 if(i
== 0) { /* master */
21 nh
= (n
- 1 > m
) ? wah
: wah
- m
;
22 } else { /* tile window */
28 mvvline(ny
, nx
, ACS_VLINE
, wah
);
29 mvaddch(ny
, nx
, ACS_TTEE
);
33 if(m
== 0 && i
+ 1 == n
) /* no minimized clients */
34 nh
= (way
+ wah
) - ny
;
35 else if(i
== nm
- 1) /* last not minimized client */
36 nh
= (way
+ wah
- (n
- i
- 1)) - ny
;
41 ny
= way
+ wah
- (n
- i
);
44 mvaddch(ny
, nx
- 1, ACS_LTEE
);
46 resize(c
,nx
,ny
,nw
,nh
);
47 if(n
> 1 && th
!= wah
)