diff options
| author | bakkeby <[email protected]> | 2020-02-09 13:04:28 +0100 |
|---|---|---|
| committer | bakkeby <[email protected]> | 2020-02-09 13:04:28 +0100 |
| commit | ecd64a976964a79f378f47b013557d22c02f9b17 (patch) | |
| tree | 4ada82aeb115da4657c5d254cd7766014e14ec49 | |
| parent | 6de03c1735b272a8081ffc8a25e078ec7e37f2c1 (diff) | |
| download | dwm-flexipatch-ecd64a976964a79f378f47b013557d22c02f9b17.tar.gz dwm-flexipatch-ecd64a976964a79f378f47b013557d22c02f9b17.zip | |
Fix systray position when barpadding patch is enabled, ref. #9
| -rw-r--r-- | patch/systray.c | 10 |
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); |
