diff options
Diffstat (limited to 'patch/bar_status.c')
| -rw-r--r-- | patch/bar_status.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/patch/bar_status.c b/patch/bar_status.c index 756c97a..d37424d 100644 --- a/patch/bar_status.c +++ b/patch/bar_status.c @@ -1,33 +1,33 @@ int -width_status(Bar *bar, BarWidthArg *a) +width_status(Bar *bar, BarArg *a) { return TEXTWM(stext); } #if BAR_EXTRASTATUS_PATCH int -width_status_es(Bar *bar, BarWidthArg *a) +width_status_es(Bar *bar, BarArg *a) { return TEXTWM(estext) - lrpad; } #endif // BAR_EXTRASTATUS_PATCH int -draw_status(Bar *bar, BarDrawArg *a) +draw_status(Bar *bar, BarArg *a) { - return drw_text(drw, a->x, 0, a->w, bh, lrpad / 2, stext, 0, True); + return drw_text(drw, a->x, a->y, a->w, a->h, lrpad / 2, stext, 0, True); } #if BAR_EXTRASTATUS_PATCH int -draw_status_es(Bar *bar, BarDrawArg *a) +draw_status_es(Bar *bar, BarArg *a) { - return drw_text(drw, a->x, 0, a->w, bh, 0, estext, 0, True); + return drw_text(drw, a->x, a->y, a->w, a->h, 0, estext, 0, True); } #endif // BAR_EXTRASTATUS_PATCH int -click_status(Bar *bar, Arg *arg, BarClickArg *a) +click_status(Bar *bar, Arg *arg, BarArg *a) { return ClkStatusText; } |
