#ifndef WX_PRECOMP
#include "wx/app.h"
+ #include "wx/log.h"
#endif // WX_PRECOMP
#include "wx/osx/private.h"
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