fixed missing Idle events

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19866 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2003-03-29 15:07:37 +00:00
parent 1cbf0cc6d3
commit 3470af1c9a
2 changed files with 10 additions and 4 deletions

View File

@@ -398,13 +398,15 @@ static pascal OSStatus ApplicationEventHandler( EventHandlerCallRef handler , Ev
{
case kEventAppActivated :
{
wxTheApp->MacResume( true ) ;
if ( wxTheApp )
wxTheApp->MacResume( true ) ;
result = noErr ;
}
break ;
case kEventAppDeactivated :
{
wxTheApp->MacSuspend( true ) ;
if ( wxTheApp )
wxTheApp->MacSuspend( true ) ;
result = noErr ;
}
break ;
@@ -1482,6 +1484,7 @@ void wxApp::MacDoOneEvent()
{
MacHandleOneEvent( theEvent ) ;
ReleaseEvent(theEvent);
sleepTime = kEventDurationNoWait ;
}
#else
EventRecord event ;

View File

@@ -398,13 +398,15 @@ static pascal OSStatus ApplicationEventHandler( EventHandlerCallRef handler , Ev
{
case kEventAppActivated :
{
wxTheApp->MacResume( true ) ;
if ( wxTheApp )
wxTheApp->MacResume( true ) ;
result = noErr ;
}
break ;
case kEventAppDeactivated :
{
wxTheApp->MacSuspend( true ) ;
if ( wxTheApp )
wxTheApp->MacSuspend( true ) ;
result = noErr ;
}
break ;
@@ -1482,6 +1484,7 @@ void wxApp::MacDoOneEvent()
{
MacHandleOneEvent( theEvent ) ;
ReleaseEvent(theEvent);
sleepTime = kEventDurationNoWait ;
}
#else
EventRecord event ;