From 277bc1e1123a89335863a5f9b87cba61581ca857 Mon Sep 17 00:00:00 2001 From: mrsu Date: Wed, 12 Jun 2024 13:40:16 +0100 Subject: [PATCH] modify SchemeNorm border --- config.def.h | 2 +- drw.c | 2 ++ patches/dwm-fixborders-6.2.diff | 27 +++++++++++++++++++++++++++ 3 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 patches/dwm-fixborders-6.2.diff diff --git a/config.def.h b/config.def.h index 42078e4..77d97a6 100644 --- a/config.def.h +++ b/config.def.h @@ -32,7 +32,7 @@ static const char col_base0D[] = "#7E9CD8"; // static const char col_base0F[] = "#D27E99"; static const char *colors[][3] = { /* fg bg border */ - [SchemeNorm] = { col_base04, col_base01, col_base02 }, + [SchemeNorm] = { col_base04, col_base01, col_base03 }, [SchemeSel] = { col_base05, col_base00, col_base08 }, [SchemeStatus] = { col_base05, col_base07, "#000000" }, // Statusbar right {text,background,not used but cannot be empty} [SchemeTagsSel] = { col_base00, col_base0D, "#000000" }, // Tagbar left selected {text,background,not used but cannot be empty} diff --git a/drw.c b/drw.c index a58a2b4..163eb51 100644 --- a/drw.c +++ b/drw.c @@ -190,6 +190,8 @@ drw_clr_create(Drw *drw, Clr *dest, const char *clrname) DefaultColormap(drw->dpy, drw->screen), clrname, dest)) die("error, cannot allocate color '%s'", clrname); + + dest->pixel |= 0xff << 24; } /* Wrapper to create color schemes. The caller has to call free(3) on the diff --git a/patches/dwm-fixborders-6.2.diff b/patches/dwm-fixborders-6.2.diff new file mode 100644 index 0000000..0a17b9e --- /dev/null +++ b/patches/dwm-fixborders-6.2.diff @@ -0,0 +1,27 @@ +From 1529909466206016f2101457bbf37c67195714c8 Mon Sep 17 00:00:00 2001 +From: Jakub Leszczak +Date: Fri, 22 Nov 2019 10:46:53 +0800 +Subject: [PATCH] Fix transparent borders + +When terminal has transparency then its borders also become transparent. +Fix it by removing transparency from any pixels drawn. +--- + drw.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/drw.c b/drw.c +index 8fd1ca4..490a592 100644 +--- a/drw.c ++++ b/drw.c +@@ -202,6 +202,8 @@ drw_clr_create(Drw *drw, Clr *dest, const char *clrname) + DefaultColormap(drw->dpy, drw->screen), + clrname, dest)) + die("error, cannot allocate color '%s'", clrname); ++ ++ dest->pixel |= 0xff << 24; + } + + /* Wrapper to create color schemes. The caller has to call free(3) on the +-- +2.26.2 +