Xinqi Bao's Git
d9d81718086f407bf1588b183531372c530763db
2 * (C)opyright MMVI Anselm R. Garbe <garbeam at gmail dot com>
3 * See LICENSE file for license details.
12 brush
.x
= brush
.y
= 0;
15 draw(dpy
, &brush
, False
, NULL
);
18 for(i
= 0; i
< TLast
; i
++) {
20 brush
.w
= textw(&brush
.font
, tags
[i
]) + bh
;
22 swap((void **)&brush
.fg
, (void **)&brush
.bg
);
23 draw(dpy
, &brush
, True
, tags
[i
]);
24 swap((void **)&brush
.fg
, (void **)&brush
.bg
);
27 draw(dpy
, &brush
, True
, tags
[i
]);
30 swap((void **)&brush
.fg
, (void **)&brush
.bg
);
32 brush
.w
= textw(&brush
.font
, stack
->name
) + bh
;
33 draw(dpy
, &brush
, True
, stack
->name
);
34 swap((void **)&brush
.fg
, (void **)&brush
.bg
);
36 brush
.w
= textw(&brush
.font
, stext
) + bh
;
37 brush
.x
= bx
+ bw
- brush
.w
;
38 draw(dpy
, &brush
, False
, stext
);
39 XCopyArea(dpy
, brush
.drawable
, barwin
, brush
.gc
, 0, 0, bw
, bh
, 0, 0);