diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_win32.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Fl_win32.cxx b/src/Fl_win32.cxx index 7b18f3100..6fc64c778 100644 --- a/src/Fl_win32.cxx +++ b/src/Fl_win32.cxx @@ -267,6 +267,11 @@ int fl_wait(double time_to_wait) { if (Fl::idle || Fl::damage()) time_to_wait = 0.0; + // if there are no more windows and this timer is set + // to FOREVER, continue through or look up indefinetely + if (!Fl::first_window() && time_to_wait==1e20) + time_to_wait = 0.0; + fl_unlock_function(); time_to_wait = (time_to_wait > 10000 ? 10000 : time_to_wait); |
