summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2002-09-19 02:32:44 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2002-09-19 02:32:44 +0000
commite252f907f807cbf8a0baf0fca29e194f5aed0801 (patch)
treef04a5a19102316c163b5f116ebbfb1901e63eeb4
parent0792860a57d4185a22ea9e0e0646a9b14c27b444 (diff)
Possible fix to OSX fl_ready() function...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2628 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-rw-r--r--src/Fl_mac.cxx9
1 files changed, 5 insertions, 4 deletions
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 $".
//