added the xclearwin patch to fix dirty borders after changing colors

This commit is contained in:
Tristan Simas 2020-05-13 17:06:41 -04:00
parent c6c7c8541d
commit 24fa39b861
4 changed files with 11 additions and 1 deletions

View File

@ -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[] = {

2
st.c
View File

@ -1970,6 +1970,8 @@ strhandle(void)
* TODO if defaultbg color is changed, borders
* are dirty
*/
if (j == defaultbg)
xclearwin();
redraw();
}
return;

1
win.h
View File

@ -37,3 +37,4 @@ void xsetpointermotion(int);
void xsetsel(char *);
int xstartdraw(void);
void xximspot(int, int);
void xclearwin(void);

7
x.c
View File

@ -831,6 +831,13 @@ xclear(int x1, int y1, int x2, int y2)
x1, y1, x2-x1, y2-y1);
}
void
xclearwin(void)
{
xclear(0, 0, win.w, win.h);
}
void
xhints(void)
{