(wrong string) élien Aptel

From: <hg_AT_suckless.org>
Date: Sat, 21 Jan 2012 23:53:04 +0100 (CET)

changeset: 222:f76271d9e82e
user: Aurélien Aptel <aurelien.aptel_AT_gmail.com>
date: Sat Jan 21 23:26:53 2012 +0100
files: st.c
description:
fix PRINT/DRAW _TIMEOUT and fix redrawing bug.


diff -r f411f77e9b64 -r f76271d9e82e st.c
--- a/st.c Sat Jan 21 23:14:41 2012 +0100
+++ b/st.c Sat Jan 21 23:26:53 2012 +0100
_AT_@ -1888,7 +1888,7 @@
         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,
_AT_@ -2028,7 +2028,7 @@
 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
Received on Sat Jan 21 2012 - 23:53:04 CET

This archive was generated by hypermail 2.3.0 : Sun Jan 22 2012 - 00:00:16 CET