Set class name on status bar a9b6a312
This is useful for configuring compositors to ignore the status bar
window.
Omar Sandoval · 2017-11-03 09:58 1 file(s) · +2 −0
dwm.c +2 −0
1809 1809
		.background_pixmap = ParentRelative,
1810 1810
		.event_mask = ButtonPressMask|ExposureMask
1811 1811
	};
1812 +
	XClassHint ch = {"dwm", "dwm"};
1812 1813
	for (m = mons; m; m = m->next) {
1813 1814
		if (m->barwin)
1814 1815
			continue;
1817 1818
				CWOverrideRedirect|CWBackPixmap|CWEventMask, &wa);
1818 1819
		XDefineCursor(dpy, m->barwin, cursor[CurNormal]->cursor);
1819 1820
		XMapRaised(dpy, m->barwin);
1821 +
		XSetClassHint(dpy, m->barwin, &ch);
1820 1822
	}
1821 1823
}
1822 1824