diff options
| author | bakkeby <[email protected]> | 2020-07-18 21:12:30 +0200 |
|---|---|---|
| committer | bakkeby <[email protected]> | 2020-07-18 21:12:30 +0200 |
| commit | 6961418d636985d96c0c3248752e642b0ec4c84b (patch) | |
| tree | 57391183827f8377d4d0ef66092deb73e82b2a26 /patch | |
| parent | 250fbbd2c77a36b1b7d22c252fb781cbab09ca79 (diff) | |
| download | dwm-flexipatch-6961418d636985d96c0c3248752e642b0ec4c84b.tar.gz dwm-flexipatch-6961418d636985d96c0c3248752e642b0ec4c84b.zip | |
Extrabar --> extrastatus
Diffstat (limited to 'patch')
| -rw-r--r-- | patch/bar_status.c | 24 | ||||
| -rw-r--r-- | patch/bar_status.h | 6 | ||||
| -rw-r--r-- | patch/bar_status2d.c | 16 | ||||
| -rw-r--r-- | patch/bar_status2d.h | 6 | ||||
| -rw-r--r-- | patch/bar_status2d_eb.c | 11 | ||||
| -rw-r--r-- | patch/bar_status_eb.c | 19 | ||||
| -rw-r--r-- | patch/bar_status_eb.h | 2 | ||||
| -rw-r--r-- | patch/bar_statuscmd.c | 6 | ||||
| -rw-r--r-- | patch/bar_statuscmd.h | 6 | ||||
| -rw-r--r-- | patch/include.c | 6 | ||||
| -rw-r--r-- | patch/include.h | 6 |
11 files changed, 58 insertions, 50 deletions
diff --git a/patch/bar_status.c b/patch/bar_status.c index 9c3aafe..0234276 100644 --- a/patch/bar_status.c +++ b/patch/bar_status.c @@ -8,6 +8,18 @@ width_status(Bar *bar, BarWidthArg *a) #endif // BAR_PANGO_PATCH } +#if BAR_EXTRASTATUS_PATCH +int +width_status_es(Bar *bar, BarWidthArg *a) +{ + #if BAR_PANGO_PATCH + return TEXTWM(estext) - lrpad; + #else + return TEXTW(estext) - lrpad; + #endif // BAR_PANGO_PATCH +} +#endif // BAR_EXTRASTATUS_PATCH + int draw_status(Bar *bar, BarDrawArg *a) { @@ -18,6 +30,18 @@ draw_status(Bar *bar, BarDrawArg *a) #endif // BAR_PANGO_PATCH } +#if BAR_EXTRASTATUS_PATCH +int +draw_status_es(Bar *bar, BarDrawArg *a) +{ + #if BAR_PANGO_PATCH + return drw_text(drw, a->x, 0, a->w, bh, 0, estext, 0, True); + #else + return drw_text(drw, a->x, 0, a->w, bh, 0, estext, 0); + #endif // BAR_PANGO_PATCH +} +#endif // BAR_EXTRASTATUS_PATCH + int click_status(Bar *bar, Arg *arg, BarClickArg *a) { diff --git a/patch/bar_status.h b/patch/bar_status.h index bd169d9..36fabbb 100644 --- a/patch/bar_status.h +++ b/patch/bar_status.h @@ -1,3 +1,9 @@ static int width_status(Bar *bar, BarWidthArg *a); +#if BAR_EXTRASTATUS_PATCH +static int width_status_es(Bar *bar, BarWidthArg *a); +#endif // BAR_EXTRASTATUS_PATCH static int draw_status(Bar *bar, BarDrawArg *a); +#if BAR_EXTRASTATUS_PATCH +static int draw_status_es(Bar *bar, BarDrawArg *a); +#endif // BAR_EXTRASTATUS_PATCH static int click_status(Bar *bar, Arg *arg, BarClickArg *a);
\ No newline at end of file diff --git a/patch/bar_status2d.c b/patch/bar_status2d.c index c4c7689..e746ac6 100644 --- a/patch/bar_status2d.c +++ b/patch/bar_status2d.c @@ -4,12 +4,28 @@ width_status2d(Bar *bar, BarWidthArg *a) return status2dtextlength(rawstext) + lrpad; } +#if BAR_EXTRASTATUS_PATCH +int +width_status2d_es(Bar *bar, BarWidthArg *a) +{ + return status2dtextlength(rawestext); +} +#endif // BAR_EXTRASTATUS_PATCH + int draw_status2d(Bar *bar, BarDrawArg *a) { return drawstatusbar(a->x, rawstext); } +#if BAR_EXTRASTATUS_PATCH +int +draw_status2d_es(Bar *bar, BarDrawArg *a) +{ + return drawstatusbar(a->x, rawestext); +} +#endif // BAR_EXTRASTATUS_PATCH + #if !BAR_STATUSCMD_PATCH int click_status2d(Bar *bar, Arg *arg, BarClickArg *a) diff --git a/patch/bar_status2d.h b/patch/bar_status2d.h index 555b093..cdaa2a8 100644 --- a/patch/bar_status2d.h +++ b/patch/bar_status2d.h @@ -1,5 +1,11 @@ static int width_status2d(Bar *bar, BarWidthArg *a); +#if BAR_EXTRASTATUS_PATCH +static int width_status2d_es(Bar *bar, BarWidthArg *a); +#endif // BAR_EXTRASTATUS_PATCH static int draw_status2d(Bar *bar, BarDrawArg *a); +#if BAR_EXTRASTATUS_PATCH +static int draw_status2d_es(Bar *bar, BarDrawArg *a); +#endif // BAR_EXTRASTATUS_PATCH #if !BAR_STATUSCMD_PATCH static int click_status2d(Bar *bar, Arg *arg, BarClickArg *a); #endif // BAR_STATUSCMD_PATCH diff --git a/patch/bar_status2d_eb.c b/patch/bar_status2d_eb.c deleted file mode 100644 index 5d67b88..0000000 --- a/patch/bar_status2d_eb.c +++ /dev/null @@ -1,11 +0,0 @@ -int -width_status2d_eb(Bar *bar, BarWidthArg *a) -{ - return status2dtextlength(rawestext); -} - -int -draw_status2d_eb(Bar *bar, BarDrawArg *a) -{ - return drawstatusbar(a->x, rawestext); -}
\ No newline at end of file diff --git a/patch/bar_status_eb.c b/patch/bar_status_eb.c deleted file mode 100644 index 71944b4..0000000 --- a/patch/bar_status_eb.c +++ /dev/null @@ -1,19 +0,0 @@ -int -width_status_eb(Bar *bar, BarWidthArg *a) -{ - #if BAR_PANGO_PATCH - return TEXTWM(estext) - lrpad; - #else - return TEXTW(estext) - lrpad; - #endif // BAR_PANGO_PATCH -} - -int -draw_status_eb(Bar *bar, BarDrawArg *a) -{ - #if BAR_PANGO_PATCH - return drw_text(drw, a->x, 0, a->w, bh, 0, estext, 0, True); - #else - return drw_text(drw, a->x, 0, a->w, bh, 0, estext, 0); - #endif // BAR_PANGO_PATCH -}
\ No newline at end of file diff --git a/patch/bar_status_eb.h b/patch/bar_status_eb.h deleted file mode 100644 index c2ec004..0000000 --- a/patch/bar_status_eb.h +++ /dev/null @@ -1,2 +0,0 @@ -static int width_status_eb(Bar *bar, BarWidthArg *a); -static int draw_status_eb(Bar *bar, BarDrawArg *a);
\ No newline at end of file diff --git a/patch/bar_statuscmd.c b/patch/bar_statuscmd.c index 5825647..0cd6013 100644 --- a/patch/bar_statuscmd.c +++ b/patch/bar_statuscmd.c @@ -10,13 +10,13 @@ click_statuscmd(Bar *bar, Arg *arg, BarClickArg *a) return click_statuscmd_text(arg, a->rel_x, rawstext); } -#if BAR_EXTRABAR_PATCH +#if BAR_EXTRASTATUS_PATCH int -click_statuscmd_eb(Bar *bar, Arg *arg, BarClickArg *a) +click_statuscmd_es(Bar *bar, Arg *arg, BarClickArg *a) { return click_statuscmd_text(arg, a->rel_x, rawestext); } -#endif // BAR_EXTRABAR_PATCH +#endif // BAR_EXTRASTATUS_PATCH int click_statuscmd_text(Arg *arg, int rel_x, char *text) diff --git a/patch/bar_statuscmd.h b/patch/bar_statuscmd.h index bcbcb33..0e1e184 100644 --- a/patch/bar_statuscmd.h +++ b/patch/bar_statuscmd.h @@ -1,6 +1,6 @@ static int click_statuscmd(Bar *bar, Arg *arg, BarClickArg *a); -#if BAR_EXTRABAR_PATCH -static int click_statuscmd_eb(Bar *bar, Arg *arg, BarClickArg *a); -#endif // BAR_EXTRABAR_PATCH +#if BAR_EXTRASTATUS_PATCH +static int click_statuscmd_es(Bar *bar, Arg *arg, BarClickArg *a); +#endif // BAR_EXTRASTATUS_PATCH static int click_statuscmd_text(Arg *arg, int rel_x, char *text); static void copyvalidchars(char *text, char *rawtext);
\ No newline at end of file diff --git a/patch/include.c b/patch/include.c index ec8f591..cef9234 100644 --- a/patch/include.c +++ b/patch/include.c @@ -22,15 +22,9 @@ #endif #if BAR_STATUS_PATCH #include "bar_status.c" -#if BAR_EXTRABAR_PATCH -#include "bar_status_eb.c" -#endif // BAR_EXTRABAR_PATCH #endif #if BAR_STATUS2D_PATCH #include "bar_status2d.c" -#if BAR_EXTRABAR_PATCH -#include "bar_status2d_eb.c" -#endif // BAR_EXTRABAR_PATCH #endif #if BAR_STATUSBUTTON_PATCH #include "bar_statusbutton.c" diff --git a/patch/include.h b/patch/include.h index e44bfbe..8b1d470 100644 --- a/patch/include.h +++ b/patch/include.h @@ -22,15 +22,9 @@ #endif #if BAR_STATUS_PATCH #include "bar_status.h" -#if BAR_EXTRABAR_PATCH -#include "bar_status_eb.h" -#endif // BAR_EXTRABAR_PATCH #endif #if BAR_STATUS2D_PATCH #include "bar_status2d.h" -#if BAR_EXTRABAR_PATCH -#include "bar_status2d_eb.h" -#endif // BAR_EXTRABAR_PATCH #endif #if BAR_STATUSBUTTON_PATCH #include "bar_statusbutton.h" |
