carbon event savvy wakeup call

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19118 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2003-02-04 22:25:21 +00:00
parent 1845da40f2
commit 04f2e99050
2 changed files with 22 additions and 0 deletions

View File

@@ -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
{

View File

@@ -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
{