Xinqi Bao's Git
projects
/
st.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
| inline |
side by side
Clean windows display after resizing
[st.git]
/
st.c
diff --git
a/st.c
b/st.c
index
b2e5e22
..
20e4512
100644
(file)
--- a/
st.c
+++ b/
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