summaryrefslogtreecommitdiff
path: root/x.c
diff options
context:
space:
mode:
authormackarelfish <mackarelfish93@gmail.com>2020-05-31 10:23:03 +0700
committermackarelfish <mackarelfish93@gmail.com>2020-05-31 10:23:03 +0700
commit6bf7545fc98cd0d42eb727d596215daac809c478 (patch)
tree1dd49c4a4819f4c4f22a09d9d36a5a129e7a6ceb /x.c
parent4edc7282ab841142e970dcb4f03f251bb5ed7292 (diff)
parent22c71c355ca4f4e965c3d07e9ac37b0da7349255 (diff)
Merge branch 'master' of https://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 e7c9001..e91edbf 100644
--- a/x.c
+++ b/x.c
@@ -815,6 +815,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;
}
@@ -831,6 +833,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",