|
|
@ -99,7 +99,7 @@ drawstatus(void) {
|
|
|
|
drawtext(arrange == dofloat ? FLOATSYMBOL : TILESYMBOL, dc.status, False);
|
|
|
|
drawtext(arrange == dofloat ? FLOATSYMBOL : TILESYMBOL, dc.status, False);
|
|
|
|
x = dc.x + dc.w;
|
|
|
|
x = dc.x + dc.w;
|
|
|
|
dc.w = textw(stext);
|
|
|
|
dc.w = textw(stext);
|
|
|
|
dc.x = bx + bw - dc.w;
|
|
|
|
dc.x = bw - dc.w;
|
|
|
|
if(dc.x < x) {
|
|
|
|
if(dc.x < x) {
|
|
|
|
dc.x = x;
|
|
|
|
dc.x = x;
|
|
|
|
dc.w = bw - x;
|
|
|
|
dc.w = bw - x;
|
|
|
@ -107,10 +107,7 @@ drawstatus(void) {
|
|
|
|
drawtext(stext, dc.status, False);
|
|
|
|
drawtext(stext, dc.status, False);
|
|
|
|
if((dc.w = dc.x - x) > bh) {
|
|
|
|
if((dc.w = dc.x - x) > bh) {
|
|
|
|
dc.x = x;
|
|
|
|
dc.x = x;
|
|
|
|
if(sel)
|
|
|
|
drawtext(sel ? sel->name : NULL, dc.sel, False);
|
|
|
|
drawtext(sel->name, dc.sel, False);
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
drawtext(NULL, dc.norm, False);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
XCopyArea(dpy, dc.drawable, barwin, dc.gc, 0, 0, bw, bh, 0, 0);
|
|
|
|
XCopyArea(dpy, dc.drawable, barwin, dc.gc, 0, 0, bw, bh, 0, 0);
|
|
|
|
XSync(dpy, False);
|
|
|
|
XSync(dpy, False);
|
|
|
|