Mercurial > MadButterfly
changeset 54:1b6dbafdf906
-
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Sun, 10 Aug 2008 00:29:11 +0800 |
parents | ffed18510d55 |
children | 01ed2bc37eed |
files | src/X_main.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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);