]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/appcmn.cpp
fix the definition of many static functions marked as 'const' or functions which...
[wxWidgets.git] / src / common / appcmn.cpp
index a38f84583f1ce5dbcb9273c8e10b1cfd98da94fb..af5a1d8eceed2902caa0b532b4c7644760cfe43f 100644 (file)
@@ -353,11 +353,11 @@ void wxAppBase::DeletePendingObjects()
 // Returns true if more time is needed.
 bool wxAppBase::ProcessIdle()
 {
-    // process pending wx events before sending idle events
-    ProcessPendingEvents();
-
+    // call the base class version first, it will process the pending events
+    // (which should be done before the idle events generation) and send the
+    // idle event to wxTheApp itself
+    bool needMore = wxAppConsoleBase::ProcessIdle();
     wxIdleEvent event;
-    bool needMore = false;
     wxWindowList::compatibility_iterator node = wxTopLevelWindows.GetFirst();
     while (node)
     {
@@ -367,9 +367,6 @@ bool wxAppBase::ProcessIdle()
         node = node->GetNext();
     }
 
-    if (wxAppConsole::ProcessIdle())
-        needMore = true;
-
     // 'Garbage' collection of windows deleted with Close().
     DeletePendingObjects();