From 6696eadf7463a9f85e78cacef063ca81accece73 Mon Sep 17 00:00:00 2001 From: bakkeby Date: Sun, 18 Oct 2020 14:26:57 +0200 Subject: [PATCH] Adding _PATCH prefixes (fix for https://github.com/bakkeby/flexipatch-finalizer/issues/6) --- patch/bar_awesomebar.c | 8 ++++---- patch/bar_fancybar.c | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/patch/bar_awesomebar.c b/patch/bar_awesomebar.c index 7a0a3dd..e8961d7 100644 --- a/patch/bar_awesomebar.c +++ b/patch/bar_awesomebar.c @@ -9,15 +9,15 @@ draw_awesomebar(Bar *bar, BarArg *a) { int n = 0, scm, remainder = 0, tabw, pad; unsigned int i; - #if BAR_TITLE_LEFT_PAD && BAR_TITLE_RIGHT_PAD + #if BAR_TITLE_LEFT_PAD_PATCH && BAR_TITLE_RIGHT_PAD_PATCH int x = a->x + lrpad / 2, w = a->w - lrpad; - #elif BAR_TITLE_LEFT_PAD + #elif BAR_TITLE_LEFT_PAD_PATCH int x = a->x + lrpad / 2, w = a->w - lrpad / 2; - #elif BAR_TITLE_RIGHT_PAD + #elif BAR_TITLE_RIGHT_PAD_PATCH int x = a->x, w = a->w - lrpad / 2; #else int x = a->x, w = a->w; - #endif // BAR_TITLE_LEFT_PAD | BAR_TITLE_RIGHT_PAD + #endif // BAR_TITLE_LEFT_PAD_PATCH | BAR_TITLE_RIGHT_PAD_PATCH Client *c; for (c = bar->mon->clients; c; c = c->next) diff --git a/patch/bar_fancybar.c b/patch/bar_fancybar.c index e4efbb1..eb55d45 100644 --- a/patch/bar_fancybar.c +++ b/patch/bar_fancybar.c @@ -12,15 +12,15 @@ draw_fancybar(Bar *bar, BarArg *a) Client *c; Monitor *m = bar->mon; - #if BAR_TITLE_LEFT_PAD && BAR_TITLE_RIGHT_PAD + #if BAR_TITLE_LEFT_PAD_PATCH && BAR_TITLE_RIGHT_PAD_PATCH int x = a->x + lrpad / 2, w = a->w - lrpad; - #elif BAR_TITLE_LEFT_PAD + #elif BAR_TITLE_LEFT_PAD_PATCH int x = a->x + lrpad / 2, w = a->w - lrpad / 2; - #elif BAR_TITLE_RIGHT_PAD + #elif BAR_TITLE_RIGHT_PAD_PATCH int x = a->x, w = a->w - lrpad / 2; #else int x = a->x, w = a->w; - #endif // BAR_TITLE_LEFT_PAD | BAR_TITLE_RIGHT_PAD + #endif // BAR_TITLE_LEFT_PAD_PATCH | BAR_TITLE_RIGHT_PAD_PATCH for (c = m->clients; c; c = c->next) { if (ISVISIBLE(c))