mirror of
https://github.com/LukeSmithxyz/st.git
synced 2024-11-22 07:15:59 +01:00
Clean windows display after resizing
Some times the size after a resizing is not an exact multiply of a number of characters, so redrawn the screen using the lines and columns of the neww size can cause that some old graphics keep in the screen. Solution is clean all the windows with the background color. --- st.c | 3 +++ 1 file changed, 3 insertions(+)
This commit is contained in:
parent
88a8f85a8a
commit
4876d6e05b
1 changed files with 3 additions and 0 deletions
3
st.c
3
st.c
|
@ -1839,6 +1839,9 @@ void
|
|||
xresize(int col, int row) {
|
||||
xw.w = MAX(1, 2*BORDER + col * xw.cw);
|
||||
xw.h = MAX(1, 2*BORDER + row * xw.ch);
|
||||
XFillRectangle(xw.dpy, xw.buf, dc.gc, 0, 0,
|
||||
DisplayWidth(xw.dpy, xw.scr),
|
||||
DisplayHeight(xw.dpy, xw.scr));
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in a new issue