Status: Fix text drawing with systray shift
This commit is contained in:
parent
cc10d56359
commit
4cf2b8bf8f
@ -158,7 +158,7 @@ statustext_normal(int sc, char *str)
|
||||
strwc[j] = str[i];
|
||||
|
||||
/* Draw normal text without any blocks */
|
||||
draw_text(infobar[sc].bar->dr, (sgeo[sc].width - SHADH) - (textw(strwc) + sw++),
|
||||
draw_text(infobar[sc].bar->dr, (sgeo[sc].width - SHADH) - (textw(strwc) + sw),
|
||||
FHINFOBAR, infobar[sc].bar->fg, 0, strwc);
|
||||
|
||||
if(n)
|
||||
@ -172,8 +172,8 @@ statustext_normal(int sc, char *str)
|
||||
for(j = 0, ++i; str[i] != '\\'; col[j++] = str[i++]);
|
||||
|
||||
/* Draw a rectangle with the bar color to draw the text properly */
|
||||
draw_rectangle(infobar[sc].bar->dr, (sgeo[sc].width - SHADH) - textw(&buf[k]),
|
||||
0, INFOBARH - (sgeo[sc].width - SHADH) - (textw(&buf[k]) + sw),
|
||||
draw_rectangle(infobar[sc].bar->dr, (sgeo[sc].width - SHADH) - (textw(&buf[k]) + sw),
|
||||
0, INFOBARH - (sgeo[sc].width - SHADH) - textw(&buf[k]),
|
||||
INFOBARH, conf.colors.bar);
|
||||
|
||||
/* Draw text with its color */
|
||||
|
||||
@ -99,7 +99,6 @@ quit(void)
|
||||
infobar_destroy();
|
||||
|
||||
systray_freeicons();
|
||||
systray_kill();
|
||||
|
||||
IFREE(sgeo);
|
||||
IFREE(spgeo);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user