Add WM_CLASS to systray to exclude it in compositor - dwm - [fork] dynamic window manager
(HTM) git clone https://git.drkhsh.at/dwm.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit aa2bc3dd47ac9d68ed50f5ee33321ae4d62420ae
(DIR) parent 3603faf0cc432ca1862ee0424fd39ffb5e273ef6
(HTM) Author: drkhsh <me@drkhsh.at>
Date: Fri, 13 Jan 2023 23:28:00 +0100
Add WM_CLASS to systray to exclude it in compositor
Diffstat:
M dwm.c | 3 +++
1 file changed, 3 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/dwm.c b/dwm.c
@@ -633,6 +633,9 @@ clientmessage(XEvent *e)
updatesystrayicongeom(c, wa.width, wa.height);
XAddToSaveSet(dpy, c->win);
XSelectInput(dpy, c->win, StructureNotifyMask | PropertyChangeMask | ResizeRedirectMask);
+ /* give systray a WM_CLASS */
+ 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;