mirror of
https://github.com/mintycube/dwm.git
synced 2024-10-22 14:05:45 +02:00
BAR_TITLE_RIGHT_PAD --> BAR_TITLE_RIGHT_PAD_PATCH
This commit is contained in:
parent
d0c077a102
commit
2065014161
@ -12,15 +12,15 @@ draw_wintitle(Bar *bar, BarDrawArg *a)
|
|||||||
#endif // BAR_ACTIVETAGINDICATORBAR_PATCH | BAR_ACTIVETAGINDICATORBAR_ALT1_PATCH
|
#endif // BAR_ACTIVETAGINDICATORBAR_PATCH | BAR_ACTIVETAGINDICATORBAR_ALT1_PATCH
|
||||||
int boxw = drw->fonts->h / 6 + 2;
|
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;
|
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;
|
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;
|
int x = a->x, w = a->w - lrpad / 2;
|
||||||
#else
|
#else
|
||||||
int x = a->x, w = a->w;
|
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;
|
Monitor *m = bar->mon;
|
||||||
|
|
||||||
if (m->sel) {
|
if (m->sel) {
|
||||||
|
@ -109,8 +109,8 @@
|
|||||||
* remaining space. These options allow you explicitly add padding should
|
* remaining space. These options allow you explicitly add padding should
|
||||||
* you need it.
|
* you need it.
|
||||||
*/
|
*/
|
||||||
#define BAR_TITLE_RIGHT_PAD 0
|
#define BAR_TITLE_RIGHT_PAD_PATCH 0
|
||||||
#define BAR_TITLE_LEFT_PAD 1
|
#define BAR_TITLE_LEFT_PAD_PATCH 1
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Bar options
|
* Bar options
|
||||||
|
Loading…
Reference in New Issue
Block a user