Set class name on status bar This is useful for configuring compositors to ignore the status bar window.
Omar Sandoval osandov@osandov.com
Fri, 03 Nov 2017 09:58:38 -0700
1 files changed,
2 insertions(+),
0 deletions(-)
jump to
M
dwm.c
→
dwm.c
@@ -1809,6 +1809,7 @@ .override_redirect = True,
.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 @@ CopyFromParent, DefaultVisual(dpy, screen),
CWOverrideRedirect|CWBackPixmap|CWEventMask, &wa); XDefineCursor(dpy, m->barwin, cursor[CurNormal]->cursor); XMapRaised(dpy, m->barwin); + XSetClassHint(dpy, m->barwin, &ch); } }