summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--patch/systray.c10
1 files changed, 9 insertions, 1 deletions
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);