X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5cd8b5b8ba2511da91e8003f3948d4648aa18e0a..87ebb0b789ac1e0f4b43362164d0e6b1ec1b8d9b:/src/motif/evtloop.cpp diff --git a/src/motif/evtloop.cpp b/src/motif/evtloop.cpp index 6886f5d3e1..a3994827f8 100644 --- a/src/motif/evtloop.cpp +++ b/src/motif/evtloop.cpp @@ -20,11 +20,6 @@ // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" -#ifdef __VMS -#define XtParent XTPARENT -#define XtDisplay XTDISPLAY -#endif - #ifndef WX_PRECOMP #include "wx/event.h" #include "wx/app.h" @@ -142,6 +137,20 @@ void wxGUIEventLoop::Exit(int rc) ::wxBreakDispatch(); } +bool wxGUIEventLoop::YieldFor(long eventsToProcess) +{ + m_isInsideYield = true; + m_eventsToProcessInsideYield = eventsToProcess; + + while (wxTheApp && wxTheApp->Pending()) + // TODO: implement event filtering using the eventsToProcess mask + wxTheApp->Dispatch(); + + m_isInsideYield = false; + + return true; +} + // ---------------------------------------------------------------------------- // wxEventLoop message processing dispatching // ----------------------------------------------------------------------------