diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2005-12-15 18:57:56 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2005-12-15 18:57:56 +0000 |
| commit | ff0733e087106a378a494e6cfdd37806f3426627 (patch) | |
| tree | 36a334281c2c6753683eb0a3e907b2dad50b2bbf | |
| parent | e3883f0384c183836d42bcfd81d9a92bb1333b2d (diff) | |
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
| -rw-r--r-- | src/Fl.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
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 } |
