diff --git a/src/osx/core/evtloop_cf.cpp b/src/osx/core/evtloop_cf.cpp index f83729f1c9..03a71cb9c3 100644 --- a/src/osx/core/evtloop_cf.cpp +++ b/src/osx/core/evtloop_cf.cpp @@ -179,25 +179,30 @@ void wxCFEventLoop::CommonModeObserverCallBack(CFRunLoopObserverRef WXUNUSED(obs if ( activity & kCFRunLoopBeforeWaiting ) { + if ( ProcessIdle() ) + { + WakeUp(); + } + else + { #if wxUSE_THREADS - wxMutexGuiLeaveOrEnter(); + wxMutexGuiLeaveOrEnter(); #endif + } } } void wxCFEventLoop::DefaultModeObserverCallBack(CFRunLoopObserverRef WXUNUSED(observer), int activity) { + /* if ( activity & kCFRunLoopBeforeTimers ) { } if ( activity & kCFRunLoopBeforeWaiting ) { - if ( ProcessIdle() ) - { - WakeUp(); - } } + */ }