dwm
dynamic window manager
git clone https://9o.is/git/dwm.git
commit a1861872a25f3e26120905f3a08220b5cbeaf3f1 parent 7ca758b7a85837f3f9d82d9968f5e4c96955c01c Author: Omar Sandoval <osandov@osandov.com> 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 @@ -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); } }