Improvements to OnIdle processing

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21934 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2003-07-13 16:59:30 +00:00
parent 9c64071583
commit 5109ae5d17
13 changed files with 50 additions and 12 deletions

View File

@@ -1029,7 +1029,6 @@ void wxApp::OnIdle(wxIdleEvent& event)
if ( s_inOnIdle )
return;
s_inOnIdle = TRUE;
// 'Garbage' collection of windows deleted with Close().
@@ -1040,11 +1039,14 @@ void wxApp::OnIdle(wxIdleEvent& event)
if ( pLog != NULL && pLog->HasPendingMessages() )
pLog->Flush();
// Now done in ProcessIdle()
#if 0
// Send OnIdle events to all windows
bool needMore = SendIdleEvents();
if (needMore)
event.RequestMore(TRUE);
#endif
// If they are pending events, we must process them: pending events are
// either events to the threads other than main or events posted with