all repos — st @ f693476365c9383ac83420319dd69372c55f9f50

st (suckless terminal) config

use xclear() in draw().
Aurélien Aptel aurelien.aptel@gmail.com
commit

f693476365c9383ac83420319dd69372c55f9f50

parent

8c3757986a41ff8fa95b175be40f67d67d7e27b1

1 files changed, 1 insertions(+), 2 deletions(-)

jump to
M st.cst.c

@@ -1321,8 +1321,7 @@ int i, x, y, ox;

Glyph base, new; char buf[DRAW_BUF_SIZ]; - XSetForeground(xw.dis, dc.gc, dc.col[DefaultBG]); - XFillRectangle(xw.dis, xw.buf, dc.gc, 0, 0, xw.bufw, xw.bufh); + xclear(0, 0, term.col-1, term.row-1); for(y = 0; y < term.row; y++) { base = term.line[y][0]; i = ox = 0;