bar border - allow for the border size to be explicitly set ref. #364

This commit is contained in:
bakkeby
2023-06-27 16:31:02 +02:00
parent 99f6f1b52c
commit ab7d28ff0f
3 changed files with 16 additions and 8 deletions

4
dwm.c
View File

@@ -484,7 +484,7 @@ struct Monitor {
int gappov; /* vertical outer gaps */
#endif // VANITYGAPS_PATCH
#if SETBORDERPX_PATCH
unsigned int borderpx;
int borderpx;
#endif // SETBORDERPX_PATCH
unsigned int seltags;
unsigned int sellt;
@@ -1676,7 +1676,7 @@ createmon(void)
bar->showbar = 1;
bar->external = 0;
#if BAR_BORDER_PATCH
bar->borderpx = borderpx;
bar->borderpx = (barborderpx ? barborderpx : borderpx);
#else
bar->borderpx = 0;
#endif // BAR_BORDER_PATCH