diff options
| author | Omar Sandoval <osandov@osandov.com> | 2017-11-03 09:58:38 -0700 |
|---|---|---|
| committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2017-11-03 20:40:34 +0100 |
| commit | a9b6a312a77b9cc81ca8b08a95c09e9f7948d7a6 (patch) | |
| tree | c662e9cebc056805eacadea41a5954b83e09f2e8 /dwm.c | |
| parent | simplify isfixed conditions (diff) | |
| download | dwm-a9b6a312a77b9cc81ca8b08a95c09e9f7948d7a6.tar.gz dwm-a9b6a312a77b9cc81ca8b08a95c09e9f7948d7a6.zip | |
Set class name on status bar
This is useful for configuring compositors to ignore the status bar
window.
Diffstat (limited to 'dwm.c')
| -rw-r--r-- | dwm.c | 2 |
1 files changed, 2 insertions, 0 deletions
| @@ -1809,6 +1809,7 @@ updatebars(void) | |||
| 1809 | .background_pixmap = ParentRelative, | 1809 | .background_pixmap = ParentRelative, |
| 1810 | .event_mask = ButtonPressMask|ExposureMask | 1810 | .event_mask = ButtonPressMask|ExposureMask |
| 1811 | }; | 1811 | }; |
| 1812 | XClassHint ch = {"dwm", "dwm"}; | ||
| 1812 | for (m = mons; m; m = m->next) { | 1813 | for (m = mons; m; m = m->next) { |
| 1813 | if (m->barwin) | 1814 | if (m->barwin) |
| 1814 | continue; | 1815 | continue; |
| @@ -1817,6 +1818,7 @@ updatebars(void) | |||
| 1817 | CWOverrideRedirect|CWBackPixmap|CWEventMask, &wa); | 1818 | CWOverrideRedirect|CWBackPixmap|CWEventMask, &wa); |
| 1818 | XDefineCursor(dpy, m->barwin, cursor[CurNormal]->cursor); | 1819 | XDefineCursor(dpy, m->barwin, cursor[CurNormal]->cursor); |
| 1819 | XMapRaised(dpy, m->barwin); | 1820 | XMapRaised(dpy, m->barwin); |
| 1821 | XSetClassHint(dpy, m->barwin, &ch); | ||
| 1820 | } | 1822 | } |
| 1821 | } | 1823 | } |
| 1822 | 1824 | ||
