From 20650141613e808aad845ef95341ee27ac96b15e Mon Sep 17 00:00:00 2001 From: bakkeby Date: Sun, 19 Jul 2020 19:30:02 +0200 Subject: [PATCH] BAR_TITLE_RIGHT_PAD --> BAR_TITLE_RIGHT_PAD_PATCH --- patch/bar_wintitle.c | 8 ++++---- patches.def.h | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/patch/bar_wintitle.c b/patch/bar_wintitle.c index 7382e0f..9db97c1 100644 --- a/patch/bar_wintitle.c +++ b/patch/bar_wintitle.c @@ -12,15 +12,15 @@ draw_wintitle(Bar *bar, BarDrawArg *a) #endif // BAR_ACTIVETAGINDICATORBAR_PATCH | BAR_ACTIVETAGINDICATORBAR_ALT1_PATCH int boxw = drw->fonts->h / 6 + 2; - #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 Monitor *m = bar->mon; if (m->sel) { diff --git a/patches.def.h b/patches.def.h index 356f071..88ab21b 100644 --- a/patches.def.h +++ b/patches.def.h @@ -109,8 +109,8 @@ * remaining space. These options allow you explicitly add padding should * you need it. */ -#define BAR_TITLE_RIGHT_PAD 0 -#define BAR_TITLE_LEFT_PAD 1 +#define BAR_TITLE_RIGHT_PAD_PATCH 0 +#define BAR_TITLE_LEFT_PAD_PATCH 1 /** * Bar options