summaryrefslogtreecommitdiff
path: root/x.c
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2020-06-02 15:06:12 -0400
committerLuke Smith <luke@lukesmith.xyz>2020-06-02 15:06:12 -0400
commit3c1ef738a7327d4f2c0336c0a6a9e04769e6c730 (patch)
treea994e8fdaa7901e55216f64834e626abeab453f9 /x.c
parent9839f563e73b61008fe789107e0d0d2879834753 (diff)
parent22c71c355ca4f4e965c3d07e9ac37b0da7349255 (diff)
Merge branch 'master' of github.com:LukeSmithxyz/st
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",