]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/macnotfy.cpp
added calls for invalidating the dc setup on mac explicitely (needed in case of neste...
[wxWidgets.git] / src / mac / carbon / macnotfy.cpp
index 3546eeb7f27defcb123bec949b6bdb68c06521b1..db406cdc63b36ea0ba970a4ac98caf606a00af49 100644 (file)
@@ -7,6 +7,7 @@
  * -------------------------------------------------------------------------
  */
 
+#include "wx/wx.h"
 #include "wx/mac/macnotfy.h"
 
 const short kMaxEvents = 1000 ;
@@ -24,7 +25,7 @@ struct wxMacNotificationEvents
 typedef struct wxMacNotificationEvents wxMacNotificationEvents ;
 wxMacNotificationEvents gMacNotificationEvents ;
 
-ProcessSerialNumber gSocketProcess ;
+ProcessSerialNumber gAppProcess ;
 
 void wxMacWakeUp()
 {
@@ -32,20 +33,20 @@ void wxMacWakeUp()
        Boolean isSame ;
        psn.highLongOfPSN = 0 ;
        psn.lowLongOfPSN = kCurrentProcess ;
-       SameProcess( &gSocketProcess , &psn , &isSame ) ;
+       SameProcess( &gAppProcess , &psn , &isSame ) ;
        if ( isSame )
        {
                PostEvent( nullEvent , 0 ) ;
        }
        else
        {
-               WakeUpProcess( &gSocketProcess ) ;
+               WakeUpProcess( &gAppProcess ) ;
        }
 }
 
 void wxMacCreateNotifierTable()
 {
-       GetCurrentProcess(&gSocketProcess);
+       GetCurrentProcess(&gAppProcess);
        gMacNotificationEvents.top = 0 ;
        gMacNotificationEvents.bottom = 0 ;
        for ( int i = 0 ; i < kMaxEvents ; ++i )