Refinement
This commit is contained in:
@ -1,25 +1,25 @@
|
||||
int
|
||||
width_status(Monitor *m, BarWidthArg *a)
|
||||
width_status(Bar *bar, BarWidthArg *a)
|
||||
{
|
||||
#if BAR_PANGO_PATCH
|
||||
return TEXTWM(stext) - lrpad + 2; /* 2px right padding */
|
||||
return TEXTWM(stext);
|
||||
#else
|
||||
return TEXTW(stext) - lrpad + 2; /* 2px right padding */
|
||||
return TEXTW(stext);
|
||||
#endif // BAR_PANGO_PATCH
|
||||
}
|
||||
|
||||
int
|
||||
draw_status(Monitor *m, BarDrawArg *a)
|
||||
draw_status(Bar *bar, BarDrawArg *a)
|
||||
{
|
||||
#if BAR_PANGO_PATCH
|
||||
return drw_text(drw, a->x, 0, a->w, bh, 0, stext, 0, True);
|
||||
return drw_text(drw, a->x, 0, a->w, bh, lrpad / 2, stext, 0, True);
|
||||
#else
|
||||
return drw_text(drw, a->x, 0, a->w, bh, 0, stext, 0);
|
||||
return drw_text(drw, a->x, 0, a->w, bh, lrpad / 2, stext, 0);
|
||||
#endif // BAR_PANGO_PATCH
|
||||
}
|
||||
|
||||
int
|
||||
click_status(Monitor *m, Arg *arg, BarClickArg *a)
|
||||
click_status(Bar *bar, Arg *arg, BarClickArg *a)
|
||||
{
|
||||
return ClkStatusText;
|
||||
}
|
||||
|
Reference in New Issue
Block a user