diff --git a/src/mac/carbon/macnotfy.cpp b/src/mac/carbon/macnotfy.cpp index 507605510d..c01f4deaf0 100644 --- a/src/mac/carbon/macnotfy.cpp +++ b/src/mac/carbon/macnotfy.cpp @@ -39,7 +39,18 @@ void wxMacWakeUp() SameProcess( &gAppProcess , &psn , &isSame ) ; if ( isSame ) { +#if TARGET_CARBON + EventRef dummyEvent ; + OSStatus err = MacCreateEvent(nil, 'WXMC', 'WXMC', GetCurrentEventTime(), + kEventAttributeNone, &dummyEvent); + if (err == noErr) + { + err = PostEventToQueue(GetMainEventQueue(), dummyEvent, + kEventPriorityHigh); + } +#else PostEvent( nullEvent , 0 ) ; +#endif } else { diff --git a/src/mac/macnotfy.cpp b/src/mac/macnotfy.cpp index 507605510d..c01f4deaf0 100644 --- a/src/mac/macnotfy.cpp +++ b/src/mac/macnotfy.cpp @@ -39,7 +39,18 @@ void wxMacWakeUp() SameProcess( &gAppProcess , &psn , &isSame ) ; if ( isSame ) { +#if TARGET_CARBON + EventRef dummyEvent ; + OSStatus err = MacCreateEvent(nil, 'WXMC', 'WXMC', GetCurrentEventTime(), + kEventAttributeNone, &dummyEvent); + if (err == noErr) + { + err = PostEventToQueue(GetMainEventQueue(), dummyEvent, + kEventPriorityHigh); + } +#else PostEvent( nullEvent , 0 ) ; +#endif } else {