diff options
| author | bakkeby <[email protected]> | 2020-07-18 13:03:30 +0200 |
|---|---|---|
| committer | bakkeby <[email protected]> | 2020-07-18 13:03:30 +0200 |
| commit | 664484d572719df5c105b386fa30e8ba0b7825fa (patch) | |
| tree | e2acd303fb33b74a930dbdabd4430a9c3072e0a9 /patch/bar_status2d.c | |
| parent | ad09397ad965d6104134bce7df5ad13ecfb97014 (diff) | |
| download | dwm-flexipatch-664484d572719df5c105b386fa30e8ba0b7825fa.tar.gz dwm-flexipatch-664484d572719df5c105b386fa30e8ba0b7825fa.zip | |
Refinement
Diffstat (limited to 'patch/bar_status2d.c')
| -rw-r--r-- | patch/bar_status2d.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/patch/bar_status2d.c b/patch/bar_status2d.c index 0adaadd..c4c7689 100644 --- a/patch/bar_status2d.c +++ b/patch/bar_status2d.c @@ -1,25 +1,25 @@ int -width_status2d(Monitor *m, BarWidthArg *a) +width_status2d(Bar *bar, BarWidthArg *a) { - return status2dtextlength(rawstext); + return status2dtextlength(rawstext) + lrpad; } int -draw_status2d(Monitor *m, BarDrawArg *a) +draw_status2d(Bar *bar, BarDrawArg *a) { - return drawstatusbar(m, a->x, a->w, rawstext); + return drawstatusbar(a->x, rawstext); } -#if !BAR_DWMBLOCKS_PATCH +#if !BAR_STATUSCMD_PATCH int -click_status2d(Monitor *m, Arg *arg, BarClickArg *a) +click_status2d(Bar *bar, Arg *arg, BarClickArg *a) { return ClkStatusText; } -#endif // BAR_DWMBLOCKS_PATCH +#endif // BAR_STATUSCMD_PATCH int -drawstatusbar(Monitor *m, int x, int ow, char* stext) +drawstatusbar(int x, char* stext) { int i, w, len; short isCode = 0; @@ -36,6 +36,8 @@ drawstatusbar(Monitor *m, int x, int ow, char* stext) memcpy(text, stext, len); #endif // BAR_STATUSCMD_PATCH + x += lrpad / 2; + /* process status text */ i = -1; while (text[++i]) { |
