dwm

my heavily-patched and customized dwm build
git clone git://git.kocotian.pl/dwm.git
Log | Files | Refs | README | LICENSE

dwm-fixborders-6.2.diff (811B)


      1 From 1529909466206016f2101457bbf37c67195714c8 Mon Sep 17 00:00:00 2001
      2 From: Jakub Leszczak <szatan@gecc.xyz>
      3 Date: Fri, 22 Nov 2019 10:46:53 +0800
      4 Subject: [PATCH] Fix transparent borders
      5 
      6 When terminal has transparency then its borders also become transparent.
      7 Fix it by removing transparency from any pixels drawn.
      8 ---
      9  drw.c | 2 ++
     10  1 file changed, 2 insertions(+)
     11 
     12 diff --git a/drw.c b/drw.c
     13 index 8fd1ca4..490a592 100644
     14 --- a/drw.c
     15 +++ b/drw.c
     16 @@ -202,6 +202,8 @@ drw_clr_create(Drw *drw, Clr *dest, const char *clrname)
     17  	                       DefaultColormap(drw->dpy, drw->screen),
     18  	                       clrname, dest))
     19  		die("error, cannot allocate color '%s'", clrname);
     20 +
     21 +	dest->pixel |= 0xff << 24;
     22  }
     23  
     24  /* Wrapper to create color schemes. The caller has to call free(3) on the
     25 -- 
     26 2.26.2
     27