apply xclearwin patch

master
Ryan 2023-09-13 10:29:17 -04:00
parent e4d2c3eede
commit 6d944657ba
Signed by: ryan
GPG Key ID: 7D7E2E94267DAD95
3 changed files with 9 additions and 4 deletions

6
st.c
View File

@ -2189,10 +2189,8 @@ strhandle(void)
fprintf(stderr, "erresc: invalid color j=%d, p=%s\n",
j, p ? p : "(null)");
} else {
/*
* TODO if defaultbg color is changed, borders
* are dirty
*/
if (j == defaultbg)
xclearwin();
tfulldirt();
}
return;

1
win.h
View File

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

6
x.c
View File

@ -862,6 +862,12 @@ 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)
{