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;
26 char *mode = arrange == tiling ? "#" : "~";
30 drawtext(NULL, False, False);
32 dc.w = textw(mode) + dc.font.height;
33 drawtext(mode, True, True);
35 for(i = 0; i < TLast; i++) {
37 dc.w = textw(tags[i]) + dc.font.height;
38 drawtext(tags[i], i == tsel, True);
42 dc.w = textw(sel->name) + dc.font.height;
43 drawtext(sel->name, True, True);
45 dc.w = textw(stext) + dc.font.height;
46 dc.x = bx + bw - dc.w;
47 drawtext(stext, False, False);
48 XCopyArea(dpy, dc.drawable, barwin, dc.gc, 0, 0, bw, bh, 0, 0);