X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/945eac794c1b3039dddafc53c5f104f7ba88fadf..ceed527cc9d30e6b79bd0e8fbb52bb3f7739d613:/src/osx/carbon/app.cpp diff --git a/src/osx/carbon/app.cpp b/src/osx/carbon/app.cpp index 3ad2d09ab0..2b8c675d3d 100644 --- a/src/osx/carbon/app.cpp +++ b/src/osx/carbon/app.cpp @@ -1119,7 +1119,7 @@ void wxCYield() // Yield to other processes -bool wxApp::Yield(bool onlyIfNeeded) +bool wxApp::DoYield(bool onlyIfNeeded, long eventsToProcess) { #if wxUSE_THREADS // Yielding from a non-gui thread needs to bail out, otherwise we end up @@ -1141,6 +1141,7 @@ bool wxApp::Yield(bool onlyIfNeeded) } m_isInsideYield = true; + m_eventsToProcessInsideYield = eventsToProcess; #if wxUSE_LOG // disable log flushing from here because a call to wxYield() shouldn't