Possible fix to OSX fl_ready() function...

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2628 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Michael R Sweet 2002-09-19 02:32:44 +00:00
parent 0792860a57
commit e252f907f8

View File

@ -1,5 +1,5 @@
//
// "$Id: Fl_mac.cxx,v 1.1.2.32 2002/07/17 06:09:26 matthiaswm Exp $"
// "$Id: Fl_mac.cxx,v 1.1.2.33 2002/09/19 02:32:44 easysw Exp $"
//
// MacOS specific code for the Fast Light Tool Kit (FLTK).
//
@ -261,11 +261,12 @@ void Fl::remove_fd(int n)
}
/**
* \todo check if there is actually a message pending!
* Check if there is actually a message pending!
*/
int fl_ready()
{
return 1;
if (GetNumEventsInQueue(GetCurrentEventQueue()) > 0) return 1;
return 0;
}
// CHECK IF USER DATA READY
@ -1744,6 +1745,6 @@ void Fl::paste(Fl_Widget &receiver, int clipboard) {
//
// End of "$Id: Fl_mac.cxx,v 1.1.2.32 2002/07/17 06:09:26 matthiaswm Exp $".
// End of "$Id: Fl_mac.cxx,v 1.1.2.33 2002/09/19 02:32:44 easysw Exp $".
//