mod/maxgui.mod/fltkmaxgui.mod/src/Fl.cxx
int Fl::wait() {
  if (!Fl_X::first) return 0;
  wait(FOREVER);
  return Fl_X::first != 0; // return true if there is a window
}
/**
  Waits until "something happens" and then returns.  Call this
  repeatedly to "run" your program.  You can also check what happened
  each time after this returns, which is quite useful for managing
  program state.
  
  What this really does is call all idle callbacks, all elapsed
  timeouts, call Fl::flush() to get the screen to update, and
  then wait some time (zero if there are idle callbacks, the shortest of
  all pending timeouts, or infinity), for any events from the user or
  any Fl::add_fd() callbacks.  It then handles the events and
  calls the callbacks and then returns.
  
  The return value of the first form is non-zero if there are
  any visible windows - this may change in future versions of
  FLTK.
  
  The second form waits a maximum of <i>time</i>
  seconds.  <i>It can return much sooner if something happens.</i>
  
  The return value is positive if an event or fd happens before the
  time elapsed.  It is zero if nothing happens (on Win32 this will only
  return zero if <i>time</i> is zero).  It is negative if an error
  occurs (this will happen on UNIX if a signal happens).
*/
Waits until "something happens" and then returns.  Call this
repeatedly to "run" your program.  You can also check what happened
each time after this returns, which is quite useful for managing
program state.



The return value of the first form is non-zero if there are
any visible windows - this may change in future versions of
FLTK.

The second form waits a maximum of time
seconds. It can return much sooner if something happens.

The return value is positive if an event or fd happens before the
time elapsed.  It is zero if nothing happens (on Win32 this will only
return zero if time is zero).  It is negative if an error
occurs (this will happen on UNIX if a signal happens).
Waits until " something happens " and then returns . Call this repeatedly to " run " your program . You can also check what happened each time after this returns which is quite useful for managing program state . The return value of the first form is non - zero if there are any visible windows - this may change in future versions of FLTK . The second form waits a maximum of time seconds . It can return much sooner if something happens . The return value is positive if an event or fd happens before the time elapsed . It is zero if nothing happens ( on Win32 this will only return zero if time is zero ) . It is negative if an error occurs ( this will happen on UNIX if a signal happens ) .
int Fl::wait() {
  if (!Fl_X::first) return 0;
  wait(FOREVER);
  return Fl_X::first != 0; 
}
int Fl :: wait ( ) { if ( ! Fl_X :: first ) return 0 ; wait ( FOREVER ) ; return Fl_X :: first != 0 ; }
Waits until "something happens" and then returns.
Waits until " something happens " and then returns .
// return true if there is a window