From 04f2e9905093281a35ce10b40366ab6047a313c2 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Tue, 4 Feb 2003 22:25:21 +0000 Subject: [PATCH] carbon event savvy wakeup call git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19118 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/macnotfy.cpp | 11 +++++++++++ src/mac/macnotfy.cpp | 11 +++++++++++ 2 files changed, 22 insertions(+) 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 { -- 2.47.2