Xinqi Bao's Git
2 * (C)opyright MMVI Anselm R. Garbe <garbeam at gmail dot com>
3 * See LICENSE file for license details.
9 barclick(XButtonPressedEvent
*e
)
13 for(a
.i
= 0; a
.i
< TLast
; a
.i
++) {
14 x
+= textw(tags
[a
.i
]) + dc
.font
.height
;
28 drawtext(NULL
, False
, False
);
31 for(i
= 0; i
< TLast
; i
++) {
33 dc
.w
= textw(tags
[i
]) + dc
.font
.height
;
34 drawtext(tags
[i
], i
== tsel
, True
);
38 dc
.w
= textw(sel
->name
) + dc
.font
.height
;
39 drawtext(sel
->name
, True
, True
);
41 dc
.w
= textw(stext
) + dc
.font
.height
;
42 dc
.x
= bx
+ bw
- dc
.w
;
43 drawtext(stext
, False
, False
);
44 XCopyArea(dpy
, dc
.drawable
, barwin
, dc
.gc
, 0, 0, bw
, bh
, 0, 0);