X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d181e877b04950068cb809b0d3d1a911bea3de74..bcf324bebe65cd7ee49c139533ceea52dceb4b91:/src/motif/app.cpp diff --git a/src/motif/app.cpp b/src/motif/app.cpp index 6f85268d75..11d8129d70 100644 --- a/src/motif/app.cpp +++ b/src/motif/app.cpp @@ -470,7 +470,7 @@ void wxApp::SetTopLevelRealizedWidget(WXDisplay* display, WXWidget widget) // Yield to other processes -bool wxApp::Yield(bool onlyIfNeeded) +bool wxApp::DoYield(bool onlyIfNeeded, long eventsToProcess) { if ( m_isInsideYield ) { @@ -483,9 +483,11 @@ bool wxApp::Yield(bool onlyIfNeeded) } m_isInsideYield = true; + m_eventsToProcessInsideYield = eventsToProcess; wxEventLoopGuarantor dummyLoopIfNeeded; while (wxTheApp && wxTheApp->Pending()) + // TODO: implement event filtering using the eventsToProcess mask wxTheApp->Dispatch(); m_isInsideYield = false;