summaryrefslogtreecommitdiff
path: root/x.c
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2020-05-13 18:10:29 -0400
committerGitHub <noreply@github.com>2020-05-13 18:10:29 -0400
commit74b68b32fab4d039b43cf5631c0617fcde1e9bbf (patch)
treebc63d35b5f4904310c76695f8334a6c5400d83cb /x.c
parentfdf3989005a9003b90a3e98d4ba5684d52f11d3c (diff)
parent05708c89c3aec1615f03171d205fd0d2573f635c (diff)
Merge pull request #208 from trissim/wal-osc
Pywal live reload with OSC patch and transparency fix
Diffstat (limited to 'x.c')
-rw-r--r--x.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/x.c b/x.c
index 8be4a04..55f4a61 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;
}
@@ -830,6 +832,13 @@ xclear(int x1, int y1, int x2, int y2)
}
void
+xclearwin(void)
+{
+ xclear(0, 0, win.w, win.h);
+}
+
+
+void
xhints(void)
{
XClassHint class = {opt_name ? opt_name : "st",