From 1601ab7a280b35b6829b8b353942f872b1d1a772 Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Sun, 23 May 1999 19:33:16 +0000 Subject: [PATCH] Now wxYield() calls wxApp::ProcessIdle() which also 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 --- src/gtk/app.cpp | 4 ++++ src/gtk1/app.cpp | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/gtk/app.cpp b/src/gtk/app.cpp index da31e2e949..d59cb98ded 100644 --- a/src/gtk/app.cpp +++ b/src/gtk/app.cpp @@ -143,6 +143,9 @@ bool wxYield() /* 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() ) @@ -150,6 +153,7 @@ bool wxYield() wxWindow *win = node->GetData(); win->OnInternalIdle(); } +#endif if (wxTheApp->m_idleTag) { diff --git a/src/gtk1/app.cpp b/src/gtk1/app.cpp index da31e2e949..d59cb98ded 100644 --- a/src/gtk1/app.cpp +++ b/src/gtk1/app.cpp @@ -143,6 +143,9 @@ bool wxYield() /* 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() ) @@ -150,6 +153,7 @@ bool wxYield() wxWindow *win = node->GetData(); win->OnInternalIdle(); } +#endif if (wxTheApp->m_idleTag) { -- 2.45.2