summaryrefslogtreecommitdiff
path: root/drw.c
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2021-05-15 22:20:34 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2021-05-15 22:20:34 +0200
commit31571be7f83b377044714889eee0dc98388ce541 (patch)
treece7ee0f505009d82e3125c0639cbb47722dbe470 /drw.c
parent67d76bdc68102df976177de351f65329d8683064 (diff)
Copy of Christian Chiarulli's config
Diffstat (limited to 'drw.c')
-rw-r--r--drw.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/drw.c b/drw.c
index 4cdbcbe..aecf9db 100644
--- a/drw.c
+++ b/drw.c
@@ -140,11 +140,11 @@ xfont_create(Drw *drw, const char *fontname, FcPattern *fontpattern)
* https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=916349
* and lots more all over the internet.
*/
- FcBool iscol;
- if(FcPatternGetBool(xfont->pattern, FC_COLOR, 0, &iscol) == FcResultMatch && iscol) {
- XftFontClose(drw->dpy, xfont);
- return NULL;
- }
+ /* FcBool iscol; */
+ /* if(FcPatternGetBool(xfont->pattern, FC_COLOR, 0, &iscol) == FcResultMatch && iscol) { */
+ /* XftFontClose(drw->dpy, xfont); */
+ /* return NULL; */
+ /* } */
font = ecalloc(1, sizeof(Fnt));
font->xfont = xfont;
@@ -203,6 +203,9 @@ drw_clr_create(Drw *drw, Clr *dest, const char *clrname)
DefaultColormap(drw->dpy, drw->screen),
clrname, dest))
die("error, cannot allocate color '%s'", clrname);
+
+ // TODO add this for borders not affected by transparency
+ dest->pixel |= 0xff << 24;
}
/* Wrapper to create color schemes. The caller has to call free(3) on the