From c47b4c91aefbea91bd8405013a5b9f8c6567c99b Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Fri, 23 Feb 2007 19:27:43 +0000 Subject: Avoiding to wait forever under Cygwin. (STR #1608) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5712 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_win32.cxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') 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); -- cgit v1.2.3