Xinqi Bao's Git
2 fibonacci(Monitor
*mon
, int s
) {
3 unsigned int i
, n
, nx
, ny
, nw
, nh
;
6 for(n
= 0, c
= nexttiled(mon
->clients
); c
; c
= nexttiled(c
->next
), n
++);
15 for(i
= 0, c
= nexttiled(mon
->clients
); c
; c
= nexttiled(c
->next
)) {
16 if((i
% 2 && nh
/ 2 > 2 * c
->bw
)
17 || (!(i
% 2) && nw
/ 2 > 2 * c
->bw
)) {
23 if((i
% 4) == 2 && !s
)
25 else if((i
% 4) == 3 && !s
)
38 else if((i
% 4) == 3) {
47 nw
= mon
->ww
* mon
->mfact
;
54 resize(c
, nx
, ny
, nw
- 2 * c
->bw
, nh
- 2 * c
->bw
, False
);
59 dwindle(Monitor
*mon
) {
64 spiral(Monitor
*mon
) {