From e252f907f807cbf8a0baf0fca29e194f5aed0801 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Thu, 19 Sep 2002 02:32:44 +0000 Subject: Possible fix to OSX fl_ready() function... git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2628 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_mac.cxx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/Fl_mac.cxx b/src/Fl_mac.cxx index fa1a31b50..7c757a5da 100644 --- a/src/Fl_mac.cxx +++ b/src/Fl_mac.cxx @@ -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 $". // -- cgit v1.2.3