int x
, y
, h
, w
, mw
, sw
, bdw
;
for (n
= 0, c
= nexttiled(m
->clients
); c
;
c
= nexttiled(c
->next
), n
++);
c
= nexttiled(m
->clients
);
n
< 3 ? m
->wx
: m
->wx
+ sw
,
n
== 1 ? m
->ww
- bdw
: mw
- bdw
,
w
= (m
->ww
- mw
) / ((n
> 1) + 1);
x
= m
->wx
+ ((n
> 1) ? mw
+ sw
: mw
);
for (i
= 0; c
&& i
< n
/ 2; c
= nexttiled(c
->next
), i
++)
(i
+ 1 == n
/ 2) ? m
->wy
+ m
->wh
- y
- bdw
: h
- bdw
,
x
= (n
+ 1 / 2) == 1 ? mw
: m
->wx
;
h
= m
->wh
/ ((n
+ 1) / 2);
for (i
= 0; c
; c
= nexttiled(c
->next
), i
++)
(i
+ 1 == (n
+ 1) / 2) ? w
- bdw
: w
- bdw
,
(i
+ 1 == (n
+ 1) / 2) ? m
->wy
+ m
->wh
- y
- bdw
: h
- bdw
,