Got report that systray was showing too far down when combined with bottom bar and barpadding

This commit is contained in:
bakkeby
2021-01-23 10:07:10 +01:00
parent da7758e63c
commit 91b3898405

4
dwm.c
View File

@@ -3700,7 +3700,11 @@ togglebar(const Arg *arg)
else if (selmon->showbar) { else if (selmon->showbar) {
wc.y = 0; wc.y = 0;
if (!selmon->topbar) if (!selmon->topbar)
#if BARPADDING_PATCH
wc.y = selmon->mh - bh + vp;
#else
wc.y = selmon->mh - bh; wc.y = selmon->mh - bh;
#endif // BARPADDING_PATCH
} }
XConfigureWindow(dpy, systray->win, CWY, &wc); XConfigureWindow(dpy, systray->win, CWY, &wc);
} }