Xinqi Bao's Git
9914e5658cb9b1231bc7810fafb2b8ffce70eae3
2 * (C)opyright MMVI Anselm R. Garbe <garbeam at gmail dot com>
3 * See LICENSE file for license details.
14 drawtext(NULL
, False
);
17 for(i
= 0; i
< TLast
; i
++) {
19 dc
.w
= textw(tags
[i
]) + dc
.font
.height
;
21 swap((void **)&dc
.fg
, (void **)&dc
.bg
);
22 drawtext(tags
[i
], True
);
23 swap((void **)&dc
.fg
, (void **)&dc
.bg
);
26 drawtext(tags
[i
], True
);
29 swap((void **)&dc
.fg
, (void **)&dc
.bg
);
31 dc
.w
= textw(sel
->name
) + dc
.font
.height
;
32 drawtext(sel
->name
, True
);
33 swap((void **)&dc
.fg
, (void **)&dc
.bg
);
35 dc
.w
= textw(stext
) + dc
.font
.height
;
36 dc
.x
= bx
+ bw
- dc
.w
;
37 drawtext(stext
, False
);
38 XCopyArea(dpy
, dc
.drawable
, barwin
, dc
.gc
, 0, 0, bw
, bh
, 0, 0);