tSet class name on status bar - dwm - [fork] customized build of dwm, the dynam… | |
git clone git://src.adamsgaard.dk/dwm | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit a9b6a312a77b9cc81ca8b08a95c09e9f7948d7a6 | |
parent 6aa8e37efe22c8a2a7713d9a437491c564c04b7e | |
Author: Omar Sandoval <[email protected]> | |
Date: Fri, 3 Nov 2017 09:58:38 -0700 | |
Set class name on status bar | |
This is useful for configuring compositors to ignore the status bar | |
window. | |
Diffstat: | |
M dwm.c | 2 ++ | |
1 file changed, 2 insertions(+), 0 deletions(-) | |
--- | |
diff --git a/dwm.c b/dwm.c | |
t@@ -1809,6 +1809,7 @@ updatebars(void) | |
.background_pixmap = ParentRelative, | |
.event_mask = ButtonPressMask|ExposureMask | |
}; | |
+ XClassHint ch = {"dwm", "dwm"}; | |
for (m = mons; m; m = m->next) { | |
if (m->barwin) | |
continue; | |
t@@ -1817,6 +1818,7 @@ updatebars(void) | |
CWOverrideRedirect|CWBackPixmap|CWEventMask, &… | |
XDefineCursor(dpy, m->barwin, cursor[CurNormal]->cursor); | |
XMapRaised(dpy, m->barwin); | |
+ XSetClassHint(dpy, m->barwin, &ch); | |
} | |
} | |