diff options
| -rw-r--r-- | CHANGES | 2 | ||||
| -rw-r--r-- | src/Fl_win32.cxx | 22 |
2 files changed, 13 insertions, 11 deletions
@@ -1,5 +1,7 @@ CHANGES IN FLTK 1.1.8 + - WIN32 did check callbacks after the event processing instead of + before as documented (STR #1535) - Fl_File_Chooser now hides the window before doing a callback when the user clicks on the OK button (STR #1565) - Fixed indentation of nested HTML elements (STR #1549) diff --git a/src/Fl_win32.cxx b/src/Fl_win32.cxx index e1a9dd5ea..632c6cb42 100644 --- a/src/Fl_win32.cxx +++ b/src/Fl_win32.cxx @@ -3,7 +3,7 @@ // // WIN32-specific code for the Fast Light Tool Kit (FLTK). // -// Copyright 1998-2005 by Bill Spitzak and others. +// Copyright 1998-2007 by Bill Spitzak and others. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Library General Public @@ -224,6 +224,16 @@ MSG fl_msg; int fl_wait(double time_to_wait) { int have_message = 0; + run_checks(); + + // idle processing + static char in_idle; + if (Fl::idle && !in_idle) { + in_idle = 1; + Fl::idle(); + in_idle = 0; + } + #ifndef USE_ASYNC_SELECT if (nfds) { // For WIN32 we need to poll for socket input FIRST, since @@ -291,16 +301,6 @@ int fl_wait(double time_to_wait) { } Fl::flush(); - // idle processing - static char in_idle; - if (Fl::idle && !in_idle) { - in_idle = 1; - Fl::idle(); - in_idle = 0; - } - - run_checks(); - // This should return 0 if only timer events were handled: return 1; } |
