From ff0733e087106a378a494e6cfdd37806f3426627 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Thu, 15 Dec 2005 18:57:56 +0000 Subject: Fl::wait() returns immediately if no windows are open. Fl::wait(double) still waits for the specified time. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4712 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/Fl.cxx b/src/Fl.cxx index 5035e3a87..2492c5050 100644 --- a/src/Fl.cxx +++ b/src/Fl.cxx @@ -464,6 +464,7 @@ int Fl::run() { } int Fl::wait() { + if (!Fl_X::first) return 0; wait(FOREVER); return Fl_X::first != 0; // return true if there is a window } -- cgit v1.2.3