Fix picom dwmtray

This commit is contained in:
Przemek Grondek 2022-09-03 18:34:56 +02:00
parent bba5360831
commit 9b342a6bcb

2
dwm.c
View File

@ -672,6 +672,8 @@ clientmessage(XEvent *e)
updatesystrayicongeom(c, wa.width, wa.height); updatesystrayicongeom(c, wa.width, wa.height);
XAddToSaveSet(dpy, c->win); XAddToSaveSet(dpy, c->win);
XSelectInput(dpy, c->win, StructureNotifyMask | PropertyChangeMask | ResizeRedirectMask); XSelectInput(dpy, c->win, StructureNotifyMask | PropertyChangeMask | ResizeRedirectMask);
XClassHint ch = {"dwmtray", "dwmtray"};
XSetClassHint(dpy, c->win, &ch);
XReparentWindow(dpy, c->win, systray->win, 0, 0); XReparentWindow(dpy, c->win, systray->win, 0, 0);
/* use parents background color */ /* use parents background color */
swa.background_pixel = scheme[SchemeNorm][ColBg].pixel; swa.background_pixel = scheme[SchemeNorm][ColBg].pixel;