]> git.saurik.com Git - wxWidgets.git/commitdiff
carbon event savvy wakeup call
authorStefan Csomor <csomor@advancedconcepts.ch>
Tue, 4 Feb 2003 22:25:21 +0000 (22:25 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Tue, 4 Feb 2003 22:25:21 +0000 (22:25 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19118 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/macnotfy.cpp
src/mac/macnotfy.cpp

index 507605510db7d7c126d65b0a07ea3f64a8b47969..c01f4deaf0cc189dd8cf8d79622dac2524f23e87 100644 (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
        {
index 507605510db7d7c126d65b0a07ea3f64a8b47969..c01f4deaf0cc189dd8cf8d79622dac2524f23e87 100644 (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
        {