# HG changeset patch # User Thinker K.F. Li # Date 1218299351 -28800 # Node ID 1b6dbafdf9068f79067049872613959ddd248a30 # Parent ffed18510d554eba6cbf352049b79b29ad7c5a5a - diff -r ffed18510d55 -r 1b6dbafdf906 src/X_main.c --- a/src/X_main.c Sun Aug 10 00:12:18 2008 +0800 +++ b/src/X_main.c Sun Aug 10 00:29:11 2008 +0800 @@ -75,7 +75,7 @@ int nfds; struct timeval tmo; mb_timeval_t mb_tmo, next_mb_tmo; - int r, r1; + int r; XSelectInput(display, win, PointerMotionMask | ExposureMask); XFlush(display); @@ -108,9 +108,9 @@ return; } - MB_TIMEVAL_ADD(&mb_tmo, &next_mb_tmo); + if(r == 0) { + MB_TIMEVAL_ADD(&mb_tmo, &next_mb_tmo); - if(r == 0) { mb_tman_handle_timeout(tman, &mb_tmo); rdman_redraw_changed(rdman); XFlush(display);