mirror of
https://github.com/mintycube/dwm.git
synced 2024-10-22 14:05:45 +02:00
Fix broken client when using systray without the alpha patch, ref. #18
This commit is contained in:
parent
9bc39c02b2
commit
f401a51fa8
@ -87,7 +87,16 @@ updatesystray(void)
|
|||||||
InputOutput, visual,
|
InputOutput, visual,
|
||||||
CWOverrideRedirect|CWBackPixel|CWBorderPixel|CWColormap|CWEventMask, &wa);
|
CWOverrideRedirect|CWBackPixel|CWBorderPixel|CWColormap|CWEventMask, &wa);
|
||||||
#else
|
#else
|
||||||
systray->win = XCreateSimpleWindow(dpy, root, x - xpad, m->by + ypad, w, bh, 0, 0, scheme[SchemeSel][ColBg].pixel);
|
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);
|
||||||
#endif // ALPHA_PATCH
|
#endif // ALPHA_PATCH
|
||||||
XSelectInput(dpy, systray->win, SubstructureNotifyMask);
|
XSelectInput(dpy, systray->win, SubstructureNotifyMask);
|
||||||
XChangeProperty(dpy, systray->win, netatom[NetSystemTrayOrientation], XA_CARDINAL, 32,
|
XChangeProperty(dpy, systray->win, netatom[NetSystemTrayOrientation], XA_CARDINAL, 32,
|
||||||
|
Loading…
Reference in New Issue
Block a user