added the xclearwin patch to fix dirty borders after changing colors
This commit is contained in:
parent
c6c7c8541d
commit
24fa39b861
4 changed files with 11 additions and 1 deletions
2
config.h
2
config.h
|
@ -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
2
st.c
|
@ -1970,6 +1970,8 @@ strhandle(void)
|
|||
* TODO if defaultbg color is changed, borders
|
||||
* are dirty
|
||||
*/
|
||||
if (j == defaultbg)
|
||||
xclearwin();
|
||||
redraw();
|
||||
}
|
||||
return;
|
||||
|
|
1
win.h
1
win.h
|
@ -37,3 +37,4 @@ void xsetpointermotion(int);
|
|||
void xsetsel(char *);
|
||||
int xstartdraw(void);
|
||||
void xximspot(int, int);
|
||||
void xclearwin(void);
|
||||
|
|
7
x.c
7
x.c
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue