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
This commit is contained in:
parent
e3883f0384
commit
ff0733e087
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user