summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBill Spitzak <spitzak@gmail.com>2000-05-11 21:58:09 +0000
committerBill Spitzak <spitzak@gmail.com>2000-05-11 21:58:09 +0000
commit2d826eb564160432259480504537e5797eced931 (patch)
treed659c4a7bca8a19f7b827f99c644f34b5b828789 /src
parenteb633643118c41afbfc88654045b1edde5cb9658 (diff)
Fl::wait() does not return immediately when no windows
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1114 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
-rw-r--r--src/Fl.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/Fl.cxx b/src/Fl.cxx
index 6ca0647ce..c2252a923 100644
--- a/src/Fl.cxx
+++ b/src/Fl.cxx
@@ -1,6 +1,6 @@
#include <stdio.h>
//
-// "$Id: Fl.cxx,v 1.24.2.19 2000/05/10 16:43:35 bill Exp $"
+// "$Id: Fl.cxx,v 1.24.2.20 2000/05/11 21:58:09 bill Exp $"
//
// Main event handling code for the Fast Light Tool Kit (FLTK).
//
@@ -210,7 +210,6 @@ int Fl::wait() {
int expired = 0;
if (numtimeouts) {fl_elapsed(); expired = call_timeouts();}
flush();
- if (!Fl_X::first) return 0; // no windows
if ((idle && !in_idle) || expired) {
fl_wait(1,0.0);
} else if (numtimeouts) {
@@ -219,7 +218,7 @@ int Fl::wait() {
initclock = 0;
fl_wait(0,0);
}
- return 1;
+ return Fl_X::first != 0; // return true if there is a window
}
double Fl::wait(double time) {
@@ -697,5 +696,5 @@ void Fl_Window::flush() {
}
//
-// End of "$Id: Fl.cxx,v 1.24.2.19 2000/05/10 16:43:35 bill Exp $".
+// End of "$Id: Fl.cxx,v 1.24.2.20 2000/05/11 21:58:09 bill Exp $".
//