mirror of
https://github.com/mintycube/st.git
synced 2024-10-22 14:05:49 +02:00
[st][PATCH] xclearwin clears the window
When an OCS sequence was used to change the bg color, the borders where dirty. This simple patch just clears the window before the redraw of the terminal when the bg color has been changed. This is apparently enough and seams to be very smooth. There was a TODO comment for it on the st.c file, which I removed.
This commit is contained in:
parent
a4d8ea1853
commit
24c9ea1e51
6
st.c
6
st.c
@ -2021,10 +2021,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
|
|
||||||
*/
|
|
||||||
redraw();
|
redraw();
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user