wxMacWakeUp();
}
+CFRunLoopRef wxGUIEventLoop::CFGetCurrentRunLoop() const
+{
+ return CFRunLoopGetCurrent();
+}
+
void wxGUIEventLoop::DispatchAndReleaseEvent(EventRef theEvent)
{
if ( wxTheApp )
switch (status)
{
case eventLoopTimedOutErr :
+ // process pending wx events before sending idle events
+ wxTheApp->ProcessPendingEvents();
if ( wxTheApp->ProcessIdle() )
m_sleepTime = kEventDurationNoWait ;
else
// OnUpdateUI() which is a nice (and desired) side effect)
while ( ProcessIdle() ) {}
+ // if there are pending events, we must process them.
+ if (wxTheApp)
+ wxTheApp->ProcessPendingEvents();
+
#if wxUSE_LOG
wxLog::Resume();
#endif // wxUSE_LOG