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 | |
| 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')
| -rw-r--r-- | src/Fl.cxx | 5 | ||||
| -rw-r--r-- | src/Fl_mac.cxx | 8 |
2 files changed, 6 insertions, 7 deletions
diff --git a/src/Fl.cxx b/src/Fl.cxx index 265503ad3..ff06ffc7d 100644 --- a/src/Fl.cxx +++ b/src/Fl.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl.cxx,v 1.24.2.41.2.41 2002/07/08 19:19:07 easysw Exp $" +// "$Id: Fl.cxx,v 1.24.2.41.2.42 2002/07/11 01:10:15 matthiaswm Exp $" // // Main event handling code for the Fast Light Tool Kit (FLTK). // @@ -367,7 +367,6 @@ void Fl::flush() { if ( port ) { QDFlushPortBuffer( port, 0 ); - //printf("DBG: Fl::flush\n"); } #else if (fl_display) XFlush(fl_display); @@ -949,5 +948,5 @@ void Fl_Window::flush() { } // -// End of "$Id: Fl.cxx,v 1.24.2.41.2.41 2002/07/08 19:19:07 easysw Exp $". +// End of "$Id: Fl.cxx,v 1.24.2.41.2.42 2002/07/11 01:10:15 matthiaswm Exp $". // 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 $". // |
