aboutsummaryrefslogtreecommitdiff
path: root/st.c
diff options
context:
space:
mode:
authorAurélien Aptel <aurelien.aptel@gmail.com>2012-01-21 23:26:53 +0100
committerAurélien Aptel <aurelien.aptel@gmail.com>2012-01-21 23:26:53 +0100
commit156ce776453dc50b6a908c761403f975af25f756 (patch)
tree8dd526d04f7fdcd6c9d24ef7a1fa3c10a2f5ef6f /st.c
parent96c22e1604704504cef6786714191ed5ffb58725 (diff)
downloadst-156ce776453dc50b6a908c761403f975af25f756.tar.gz
st-156ce776453dc50b6a908c761403f975af25f756.tar.bz2
fix PRINT/DRAW _TIMEOUT and fix redrawing bug.
Diffstat (limited to 'st.c')
-rw-r--r--st.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/st.c b/st.c
index c543bb1..f56667b 100644
--- a/st.c
+++ b/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