Xinqi Bao's Git
projects
/
dwm.git
/ diff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
| inline |
side by side
(parent:
6aa8e37
)
Set class name on status bar
author
Omar Sandoval <
[email protected]
>
Fri, 3 Nov 2017 16:58:38 +0000
(09:58 -0700)
committer
Hiltjo Posthuma <
[email protected]
>
Fri, 3 Nov 2017 19:40:34 +0000
(20:40 +0100)
This is useful for configuring compositors to ignore the status bar
window.
dwm.c
diff
|
blob
|
history
diff --git
a/dwm.c
b/dwm.c
index
4782343
..
b0d99c0
100644
(file)
--- a/
dwm.c
+++ b/
dwm.c
@@
-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;
@@
-1817,6
+1818,7
@@
updatebars(void)
CWOverrideRedirect|CWBackPixmap|CWEventMask, &wa);
XDefineCursor(dpy, m->barwin, cursor[CurNormal]->cursor);
XMapRaised(dpy, m->barwin);
+ XSetClassHint(dpy, m->barwin, &ch);
}
}