X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f212e222e736f9f24d86edb5717508a159c38692..4ab8a5e2f15dbd78b1220a7368f7dadab1517e9c:/src/motif/app.cpp diff --git a/src/motif/app.cpp b/src/motif/app.cpp index 5807769612..6f85268d75 100644 --- a/src/motif/app.cpp +++ b/src/motif/app.cpp @@ -472,9 +472,7 @@ void wxApp::SetTopLevelRealizedWidget(WXDisplay* display, WXWidget widget) bool wxApp::Yield(bool onlyIfNeeded) { - static bool s_inYield = false; - - if ( s_inYield ) + if ( m_isInsideYield ) { if ( !onlyIfNeeded ) { @@ -484,13 +482,13 @@ bool wxApp::Yield(bool onlyIfNeeded) return false; } - s_inYield = true; + m_isInsideYield = true; wxEventLoopGuarantor dummyLoopIfNeeded; while (wxTheApp && wxTheApp->Pending()) wxTheApp->Dispatch(); - s_inYield = false; + m_isInsideYield = false; return true; }