On Fri, Nov 03, 2017 at 09:58:38AM -0700, Omar Sandoval wrote:
> This is useful for configuring compositors to ignore the status bar
> window.
> ---
> As Devin pointed out in the dmenu thread, there's no reason to
> dynamically allocate ch at all.
>
> dwm.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> 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);
> }
> }
>
> --
> 2.15.0
>
>
Thanks!, I'll apply it for dwm and dmenu soon :)
--
Kind regards,
Hiltjo
Received on Fri Nov 03 2017 - 19:36:05 CET