summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2024-11-18 12:43:37 -0600
committerCraig Jennings <c@cjennings.net>2024-11-18 12:43:37 -0600
commita6c9742110e832966b8411ba5145eb6df698170a (patch)
tree9b8eb2c9ef75864968212a339d7ab73b443af509
parent1446c46e54b6e7dfc3f008cbe2353514a778a6be (diff)
give the systray a class so picom can exclude it from rounding
-rw-r--r--dwm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/dwm.c b/dwm.c
index ade8f8e..f9aea1e 100644
--- a/dwm.c
+++ b/dwm.c
@@ -737,6 +737,8 @@ clientmessage(XEvent *e)
updatesystrayicongeom(c, wa.width, wa.height);
XAddToSaveSet(dpy, c->win);
XSelectInput(dpy, c->win, StructureNotifyMask | PropertyChangeMask | ResizeRedirectMask);
+ XClassHint ch = {"dwmsystray", "dwmsystray"};
+ XSetClassHint(dpy, c->win, &ch);
XReparentWindow(dpy, c->win, systray->win, 0, 0);
/* use parents background color */
swa.background_pixel = scheme[SchemeNorm][ColBg].pixel;