entails that wxYield() will flush events that have
   been sent from other threads. I don't know what
   wxMSW does here, but I guess the same wouldn't be
   bad.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2544 
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
     /* it's necessary to call ProcessIdle() to update the frames sizes which
        might have been changed (it also will update other things set from
        OnUpdateUI() which is a nice (and desired) side effect) */
+    while (wxTheApp->ProcessIdle()) { }
+       
+#if 0
     for ( wxWindowList::Node *node = wxTopLevelWindows.GetFirst();
           node;
           node = node->GetNext() )
         wxWindow *win = node->GetData();
         win->OnInternalIdle();
     }
+#endif
 
     if (wxTheApp->m_idleTag)
     {
 
     /* it's necessary to call ProcessIdle() to update the frames sizes which
        might have been changed (it also will update other things set from
        OnUpdateUI() which is a nice (and desired) side effect) */
+    while (wxTheApp->ProcessIdle()) { }
+       
+#if 0
     for ( wxWindowList::Node *node = wxTopLevelWindows.GetFirst();
           node;
           node = node->GetNext() )
         wxWindow *win = node->GetData();
         win->OnInternalIdle();
     }
+#endif
 
     if (wxTheApp->m_idleTag)
     {