diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2021-05-15 22:20:34 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2021-05-15 22:20:34 +0200 |
commit | 31571be7f83b377044714889eee0dc98388ce541 (patch) | |
tree | ce7ee0f505009d82e3125c0639cbb47722dbe470 /drw.c | |
parent | 67d76bdc68102df976177de351f65329d8683064 (diff) |
Copy of Christian Chiarulli's config
Diffstat (limited to 'drw.c')
-rw-r--r-- | drw.c | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -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 |