apply xclearwin patch

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

6
st.c
View File

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

1
win.h
View File

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

6
x.c
View File

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