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
);
31 for(i
= 0; i
< TLast
; i
++) {
33 dc
.w
= textw(tags
[i
]) + dc
.font
.height
;
35 swap((void **)&dc
.fg
, (void **)&dc
.bg
);
36 drawtext(tags
[i
], True
);
37 swap((void **)&dc
.fg
, (void **)&dc
.bg
);
40 drawtext(tags
[i
], True
);
43 swap((void **)&dc
.fg
, (void **)&dc
.bg
);
45 dc
.w
= textw(sel
->name
) + dc
.font
.height
;
46 drawtext(sel
->name
, True
);
47 swap((void **)&dc
.fg
, (void **)&dc
.bg
);
49 dc
.w
= textw(stext
) + dc
.font
.height
;
50 dc
.x
= bx
+ bw
- dc
.w
;
51 drawtext(stext
, False
);
52 XCopyArea(dpy
, dc
.drawable
, barwin
, dc
.gc
, 0, 0, bw
, bh
, 0, 0);