summaryrefslogtreecommitdiff
path: root/x.c
diff options
context:
space:
mode:
authorTristan Simas <tristan.simas@mail.mcgill.ca>2020-05-13 14:52:22 -0400
committerTristan Simas <tristan.simas@mail.mcgill.ca>2020-05-13 14:52:22 -0400
commitc6c7c8541dde87b87d492465a1af3c585e5e19a0 (patch)
treec1357f580ca9be82571f3508a649d7655abeb1fe /x.c
parentfdf3989005a9003b90a3e98d4ba5684d52f11d3c (diff)
Added OSC patch and changes xsetcolorname for live reloading pywal colors while keeping transparency
Diffstat (limited to 'x.c')
-rw-r--r--x.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/x.c b/x.c
index 8be4a04..47e4dea 100644
--- a/x.c
+++ b/x.c
@@ -814,6 +814,8 @@ xsetcolorname(int x, const char *name)
XftColorFree(xw.dpy, xw.vis, xw.cmap, &dc.col[x]);
dc.col[x] = ncolor;
+ if (x == defaultbg)
+ dc.col[defaultbg].color.alpha = (unsigned short)(0xffff * alpha);
return 0;
}