]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/app.cpp
no real change: put event handlers together at the end of the file
[wxWidgets.git] / src / motif / app.cpp
index 6f85268d7515bea251e2dc755fb23f7b0ac91431..11d8129d7026b508d1815abdb660d62a54b06b97 100644 (file)
@@ -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;