summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOmar Sandoval <osandov@osandov.com>2017-11-03 09:58:38 -0700
committerHiltjo Posthuma <hiltjo@codemadness.org>2017-11-03 20:40:34 +0100
commita9b6a312a77b9cc81ca8b08a95c09e9f7948d7a6 (patch)
treec662e9cebc056805eacadea41a5954b83e09f2e8
parent6aa8e37efe22c8a2a7713d9a437491c564c04b7e (diff)
downloaddwm-a9b6a312a77b9cc81ca8b08a95c09e9f7948d7a6.tar.gz
Set class name on status bar
This is useful for configuring compositors to ignore the status bar window.
-rw-r--r--dwm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/dwm.c b/dwm.c
index 4782343..b0d99c0 100644
--- 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);
}
}