Commit Diff


commit - 96c22e1604704504cef6786714191ed5ffb58725
commit + 156ce776453dc50b6a908c761403f975af25f756
blob - c543bb1247b71484fa713d16011dd581c6e69253
blob + f56667baeb96f6049d57f80e55837f7243b15581
--- st.c
+++ st.c
@@ -1888,7 +1888,7 @@ expose(XEvent *ev) {
 	if(xw.state & WIN_REDRAW) {
 		if(!e->count) {
 			xw.state &= ~WIN_REDRAW;
-			draw();
+			xcopy(0, 0, term.col, term.row);
 		}
 	} else
 		XCopyArea(xw.dpy, xw.buf, xw.win, dc.gc, e->x-BORDER, e->y-BORDER,
@@ -2028,7 +2028,7 @@ int
 last_draw_too_old(void) {
 	struct timeval now;
 	gettimeofday(&now, NULL);
-	return TIMEDIFF(now, xw.lastdraw) >= PRINT_TIMEOUT/1000;
+	return TIMEDIFF(now, xw.lastdraw) >= DRAW_TIMEOUT/1000;
 }
 
 void