diff options
author | mackarelfish <mackarelfish93@gmail.com> | 2020-05-31 10:23:03 +0700 |
---|---|---|
committer | mackarelfish <mackarelfish93@gmail.com> | 2020-05-31 10:23:03 +0700 |
commit | 6bf7545fc98cd0d42eb727d596215daac809c478 (patch) | |
tree | 1dd49c4a4819f4c4f22a09d9d36a5a129e7a6ceb /x.c | |
parent | 4edc7282ab841142e970dcb4f03f251bb5ed7292 (diff) | |
parent | 22c71c355ca4f4e965c3d07e9ac37b0da7349255 (diff) |
Merge branch 'master' of https://github.com/lukesmithxyz/st
Diffstat (limited to 'x.c')
-rw-r--r-- | x.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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", |