On Mon, Aug 06, 2018 at 04:42:19PM +0300, Alexander Krotov wrote:
> With this patch the bar can at least be hidden before opening web pages
> that cause Xft errors.
> 

This is not a dwm issue. Please bother the Xft developers.

> From b13c56c10b4c1da3e357efae3d4827da573650a4 Mon Sep 17 00:00:00 2001
> From: Alexander Krotov <ilab...@gmail.com>
> Date: Mon, 6 Aug 2018 16:37:14 +0300
> Subject: [PATCH] Do not draw bar if it is hidden
> 
> ---
>  dwm.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/dwm.c b/dwm.c
> index 4465af1..c7debe2 100644
> --- a/dwm.c
> +++ b/dwm.c
> @@ -701,6 +701,9 @@ drawbar(Monitor *m)
>       unsigned int i, occ = 0, urg = 0;
>       Client *c;
>  
> +     if (!m->showbar)
> +             return;
> +
>       /* draw status first so it can be overdrawn by tags later */
>       if (m == selmon) { /* status is only drawn on selected monitor */
>               drw_setscheme(drw, scheme[SchemeNorm]);
> -- 
> 2.17.1
> 


-- 
Kind regards,
Hiltjo

Reply via email to