Xinqi Bao's Git
2 * (C)opyright MMVI Anselm R. Garbe <garbeam at gmail dot com>
3 * See LICENSE file for license details.
12 brush
.rect
.x
= brush
.rect
.y
= 0;
13 draw(dpy
, &brush
, False
, NULL
);
16 brush
.rect
.width
= textwidth(&brush
.font
, stack
->name
) + labelheight(&brush
.font
);
17 swap((void **)&brush
.fg
, (void **)&brush
.bg
);
18 draw(dpy
, &brush
, False
, stack
->name
);
19 swap((void **)&brush
.fg
, (void **)&brush
.bg
);
20 brush
.rect
.x
+= brush
.rect
.width
;
23 brush
.rect
.width
= textwidth(&brush
.font
, statustext
) + labelheight(&brush
.font
);
24 brush
.rect
.x
= barrect
.x
+ barrect
.width
- brush
.rect
.width
;
25 draw(dpy
, &brush
, False
, statustext
);
27 XCopyArea(dpy
, brush
.drawable
, barwin
, brush
.gc
, 0, 0, barrect
.width
,
28 barrect
.height
, 0, 0);