X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/529b7f71bd62a79c79c91931729bdaa245489750..d772bf4341fd3573a6122e4ecc67edea511cdad1:/src/common/appcmn.cpp diff --git a/src/common/appcmn.cpp b/src/common/appcmn.cpp index 02643c08e5..dd1636b598 100644 --- a/src/common/appcmn.cpp +++ b/src/common/appcmn.cpp @@ -236,8 +236,9 @@ bool wxAppBase::ProcessIdle() bool wxAppBase::SendIdleEvents(wxWindow* win, wxIdleEvent& event) { bool needMore = FALSE; - + win->OnInternalIdle(); + if (wxIdleEvent::CanSend(win)) { event.SetEventObject(win); @@ -246,7 +247,6 @@ bool wxAppBase::SendIdleEvents(wxWindow* win, wxIdleEvent& event) if (event.MoreRequested()) needMore = TRUE; } - wxWindowList::compatibility_iterator node = win->GetChildren().GetFirst(); while ( node ) { @@ -260,7 +260,7 @@ bool wxAppBase::SendIdleEvents(wxWindow* win, wxIdleEvent& event) return needMore; } -void wxAppBase::OnIdle(wxIdleEvent& event) +void wxAppBase::OnIdle(wxIdleEvent& WXUNUSED(event)) { // If there are pending events, we must process them: pending events // are either events to the threads other than main or events posted