diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2002-07-11 01:10:15 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2002-07-11 01:10:15 +0000 |
| commit | 7dc80d17b0a29dd5c9b6f7f2763c51af9e5fe96d (patch) | |
| tree | a955664696efc75660ef7e74ce2aad2f6faae742 /src/Fl_mac.cxx | |
| parent | 066fc7805c7835334c046d8b0717cbd8b6d7acae (diff) | |
MacOS: wait(0) would not handle all pending events.
The OpenGL demos were showing a significant delay in handling UI events.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2502 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_mac.cxx')
| -rw-r--r-- | src/Fl_mac.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Fl_mac.cxx b/src/Fl_mac.cxx index 34c31fc0e..7ecac1410 100644 --- a/src/Fl_mac.cxx +++ b/src/Fl_mac.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_mac.cxx,v 1.1.2.29 2002/06/28 00:28:09 matthiaswm Exp $" +// "$Id: Fl_mac.cxx,v 1.1.2.30 2002/07/11 01:10:15 matthiaswm Exp $" // // MacOS specific code for the Fast Light Tool Kit (FLTK). // @@ -450,7 +450,7 @@ static void breakMacEventLoop() /** - * This function iss the central event handler. + * This function is the central event handler. * It reads events from the event queue using the given maximum time * Funny enough, it returns the same time that it got as the argument. */ @@ -538,7 +538,7 @@ static double do_queued_events( double time = 0.0 ) { EventRef breakEvent; CreateEvent( 0, kEventClassFLTK, kEventFLTKBreakLoop, 0, kEventAttributeUserEvent, &breakEvent ); - PostEventToQueue( GetCurrentEventQueue(), breakEvent, kEventPriorityStandard ); + PostEventToQueue( GetCurrentEventQueue(), breakEvent, kEventPriorityLow ); RunApplicationEventLoop(); ReleaseEvent( breakEvent ); if ( dataready_tid != 0 ) @@ -1683,6 +1683,6 @@ void Fl::paste(Fl_Widget &receiver, int clipboard) { // -// End of "$Id: Fl_mac.cxx,v 1.1.2.29 2002/06/28 00:28:09 matthiaswm Exp $". +// End of "$Id: Fl_mac.cxx,v 1.1.2.30 2002/07/11 01:10:15 matthiaswm Exp $". // |
