diff options
| author | bakkeby <[email protected]> | 2020-09-09 17:24:02 +0200 |
|---|---|---|
| committer | bakkeby <[email protected]> | 2020-09-09 17:24:02 +0200 |
| commit | ff9811f73d1f3d47a6ab7a2a7e44308bf849fb44 (patch) | |
| tree | ded58addbdbcf61bdf8eaa99d9c67f46d1f8921d /patch/bar_status.c | |
| parent | b3e6e3531b79b4bcd6938f291f9658ca5bbc5dd2 (diff) | |
| download | dwm-flexipatch-ff9811f73d1f3d47a6ab7a2a7e44308bf849fb44.tar.gz dwm-flexipatch-ff9811f73d1f3d47a6ab7a2a7e44308bf849fb44.zip | |
Just some minor changes adding bar border patch ref. #41
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; } |
