summaryrefslogtreecommitdiffhomepage
path: root/patch/bar_status.c
diff options
context:
space:
mode:
Diffstat (limited to 'patch/bar_status.c')
-rw-r--r--patch/bar_status.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/patch/bar_status.c b/patch/bar_status.c
index 2d7283b..9c3aafe 100644
--- a/patch/bar_status.c
+++ b/patch/bar_status.c
@@ -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;
}