STR ##1081, 1083, 1084: in a previous change that improved timer behaviour, the idle management was accidentaly removed from the code.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4665 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Matthias Melcher 2005-11-28 15:13:10 +00:00
parent b317b6dbb0
commit 687f0693af

View File

@ -366,9 +366,9 @@ static void run_checks()
next_check = first_check;
}
}
#endif // !__APPLE__
static char in_idle;
#endif // !__APPLE__
////////////////////////////////////////////////////////////////
// wait/run/check/ready:
@ -389,6 +389,15 @@ double Fl::wait(double time_to_wait) {
#elif defined(__APPLE__)
flush();
if (idle) {
if (!in_idle) {
in_idle = 1;
idle();
in_idle = 0;
}
// the idle function may turn off idle, we can then wait:
if (idle) time_to_wait = 0.0;
}
return fl_wait(time_to_wait);
#else