[hackers] [dwm] Set class name on status bar || Omar Sandoval
commit a9b6a312a77b9cc81ca8b08a95c09e9f7948d7a6
Author: Omar Sandoval <osandov_AT_osandov.com>
AuthorDate: Fri Nov 3 09:58:38 2017 -0700
Commit: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
CommitDate: Fri Nov 3 20:40:34 2017 +0100
Set class name on status bar
This is useful for configuring compositors to ignore the status bar
window.
diff --git a/dwm.c b/dwm.c
index 4782343..b0d99c0 100644
--- a/dwm.c
+++ b/dwm.c
_AT_@ -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;
_AT_@ -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);
}
}
Received on Fri Nov 03 2017 - 20:42:23 CET
This archive was generated by hypermail 2.3.0
: Fri Nov 03 2017 - 20:48:20 CET