exclude dwm systray from shadow

This commit is contained in:
Sakooooo 2023-08-07 17:02:35 +03:00
parent ec8b78b3ee
commit d5b3a2869d
Signed by: sako
GPG key ID: 3FD715D87D7725E0
2 changed files with 3 additions and 1 deletions

View file

@ -624,6 +624,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 = {"dwmsystray", "dwmsystray"};
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;

View file

@ -49,7 +49,7 @@ shadow-exclude = [
"class_g ?= 'Notify-osd'", "class_g ?= 'Notify-osd'",
"class_g = 'Cairo-clock'", "class_g = 'Cairo-clock'",
"class_g = 'dwm'", "class_g = 'dwm'",
"_NET_WM_WINDOW_TYPE@:32a *= '_NET_WM_WINDOW_TYPE_DOCK'", "class_g = 'dwmsystray'",
"_GTK_FRAME_EXTENTS@:c" "_GTK_FRAME_EXTENTS@:c"
]; ];