summaryrefslogtreecommitdiffhomepage
path: root/patch
diff options
context:
space:
mode:
authorbakkeby <[email protected]>2020-03-22 11:09:30 +0100
committerbakkeby <[email protected]>2020-03-22 11:09:47 +0100
commit9344ff61dd0fcc3f8199e3aa1ac467d16c9f2383 (patch)
tree6740fa3f57446190211faba4e85cca99fea2205a /patch
parentf401a51fa8b2a02d754b29cc39f4a6675f16a454 (diff)
downloaddwm-flexipatch-9344ff61dd0fcc3f8199e3aa1ac467d16c9f2383.tar.gz
dwm-flexipatch-9344ff61dd0fcc3f8199e3aa1ac467d16c9f2383.zip
Alternative fix which is more in line with the original diff, ref. #18
Diffstat (limited to 'patch')
-rw-r--r--patch/systray.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/patch/systray.c b/patch/systray.c
index c2a04f0..bf30073 100644
--- a/patch/systray.c
+++ b/patch/systray.c
@@ -87,16 +87,11 @@ updatesystray(void)
InputOutput, visual,
CWOverrideRedirect|CWBackPixel|CWBorderPixel|CWColormap|CWEventMask, &wa);
#else
- XSetWindowAttributes wa = {
- .override_redirect = True,
- .background_pixel = scheme[SchemeNorm][ColBg].pixel,
- .border_pixel = 0,
- .colormap = DefaultColormap(dpy, screen),
- .event_mask = ButtonPressMask|ExposureMask
- };
- systray->win = XCreateWindow(dpy, root, x - xpad, m->by + ypad, w, bh, 0, DefaultDepth(dpy, screen),
- InputOutput, DefaultVisual(dpy, screen),
- CWOverrideRedirect|CWBackPixel|CWBorderPixel|CWColormap|CWEventMask, &wa);
+ systray->win = XCreateSimpleWindow(dpy, root, x - xpad, m->by + ypad, w, bh, 0, 0, scheme[SchemeSel][ColBg].pixel);
+ wa.event_mask = ButtonPressMask | ExposureMask;
+ wa.override_redirect = True;
+ wa.background_pixel = scheme[SchemeNorm][ColBg].pixel;
+ XChangeWindowAttributes(dpy, systray->win, CWEventMask|CWOverrideRedirect|CWBackPixel, &wa);
#endif // ALPHA_PATCH
XSelectInput(dpy, systray->win, SubstructureNotifyMask);
XChangeProperty(dpy, systray->win, netatom[NetSystemTrayOrientation], XA_CARDINAL, 32,