X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3cac36541b70f7149928900257dd4da65d9332a4..eea4d01c65f9b29baa1193db762b4c6b8144af24:/src/osx/core/evtloop_cf.cpp diff --git a/src/osx/core/evtloop_cf.cpp b/src/osx/core/evtloop_cf.cpp index f83729f1c9..afe67a048c 100644 --- a/src/osx/core/evtloop_cf.cpp +++ b/src/osx/core/evtloop_cf.cpp @@ -179,25 +179,32 @@ 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) +void +wxCFEventLoop::DefaultModeObserverCallBack(CFRunLoopObserverRef WXUNUSED(observer), + int WXUNUSED(activity)) { + /* if ( activity & kCFRunLoopBeforeTimers ) { } if ( activity & kCFRunLoopBeforeWaiting ) { - if ( ProcessIdle() ) - { - WakeUp(); - } } + */ }