From ecd64a976964a79f378f47b013557d22c02f9b17 Mon Sep 17 00:00:00 2001 From: bakkeby Date: Sun, 9 Feb 2020 13:04:28 +0100 Subject: [PATCH] Fix systray position when barpadding patch is enabled, ref. #9 --- patch/systray.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/patch/systray.c b/patch/systray.c index 0e70539..27610f3 100644 --- a/patch/systray.c +++ b/patch/systray.c @@ -122,7 +122,15 @@ updatesystray(void) w = w ? w + systrayspacing : 1; x -= w; XMoveResizeWindow(dpy, systray->win, x, m->by, w, bh); - wc.x = x; wc.y = m->by; wc.width = w; wc.height = bh; + #if BARPADDING_PATCH + wc.x = x - sp; + wc.y = m->by + vp; + #else + wc.x = x; + wc.y = m->by; + #endif // BARPADDING_PATCH + wc.width = w; + wc.height = bh; wc.stack_mode = Above; wc.sibling = m->barwin; XConfigureWindow(dpy, systray->win, CWX|CWY|CWWidth|CWHeight|CWSibling|CWStackMode, &wc); XMapWindow(dpy, systray->win);