From 592a3c6eb9ec84088c73f7f1858d6c7d2066a4f9 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Mon, 6 Jun 2011 21:12:14 +0000 Subject: [PATCH] reverting to idle handling git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67870 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/osx/core/evtloop_cf.cpp | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) 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(); - } } + */ } -- 2.45.2