diff options
author | Tristan Simas <tristan.simas@mail.mcgill.ca> | 2020-05-13 17:06:41 -0400 |
---|---|---|
committer | Tristan Simas <tristan.simas@mail.mcgill.ca> | 2020-05-13 17:06:41 -0400 |
commit | 24fa39b8618887a0e6bfeda1b83391361887cc21 (patch) | |
tree | bc3f4eb6fff34e3476bdcb490f7c1d6a79026b2e | |
parent | c6c7c8541dde87b87d492465a1af3c585e5e19a0 (diff) |
added the xclearwin patch to fix dirty borders after changing colors
-rw-r--r-- | config.h | 2 | ||||
-rw-r--r-- | st.c | 2 | ||||
-rw-r--r-- | win.h | 1 | ||||
-rw-r--r-- | x.c | 7 |
4 files changed, 11 insertions, 1 deletions
@@ -108,7 +108,7 @@ char *termname = "st-256color"; unsigned int tabspaces = 8; /* bg opacity */ -float alpha = 0.8; +float alpha = 0.9; /* Terminal colors (16 first used in escape sequence) */ static const char *colorname[] = { @@ -1970,6 +1970,8 @@ strhandle(void) * TODO if defaultbg color is changed, borders * are dirty */ + if (j == defaultbg) + xclearwin(); redraw(); } return; @@ -37,3 +37,4 @@ void xsetpointermotion(int); void xsetsel(char *); int xstartdraw(void); void xximspot(int, int); +void xclearwin(void); @@ -832,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", |