systray: fixing togglebar barpadding issue

This commit is contained in:
bakkeby
2021-01-25 09:28:06 +01:00
parent 91b3898405
commit 9c2283dec9

6
dwm.c
View File

@@ -3698,11 +3698,13 @@ togglebar(const Arg *arg)
if (!selmon->showbar) if (!selmon->showbar)
wc.y = -bh; wc.y = -bh;
else if (selmon->showbar) { else if (selmon->showbar) {
wc.y = 0;
if (!selmon->topbar)
#if BARPADDING_PATCH #if BARPADDING_PATCH
wc.y = vp;
if (!selmon->topbar)
wc.y = selmon->mh - bh + vp; wc.y = selmon->mh - bh + vp;
#else #else
wc.y = 0;
if (!selmon->topbar)
wc.y = selmon->mh - bh; wc.y = selmon->mh - bh;
#endif // BARPADDING_PATCH #endif // BARPADDING_PATCH
} }