diff --git a/src/osx/core/evtloop_cf.cpp b/src/osx/core/evtloop_cf.cpp index 19b10e4911..9eefc0d22b 100644 --- a/src/osx/core/evtloop_cf.cpp +++ b/src/osx/core/evtloop_cf.cpp @@ -304,11 +304,13 @@ int wxCFEventLoop::DoProcessEvents() { if ( m_shouldWaitForEvent ) { - int handled = DispatchTimeout( 10000 ); + int handled = DispatchTimeout( 1000 ); wxASSERT_MSG( handled == 1, "No Event Available"); m_shouldWaitForEvent = false; + return handled; } - return DispatchTimeout( 0 ); + else + return DispatchTimeout( 0 ); } bool wxCFEventLoop::Dispatch()