X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ee6b1d97e741fda8d579fa21cbc89f0c91615cef..33754c4d83c59b7523a6da0c4fb21079cb60301c:/src/mac/macnotfy.cpp diff --git a/src/mac/macnotfy.cpp b/src/mac/macnotfy.cpp index 3546eeb7f2..a47fce31e5 100644 --- a/src/mac/macnotfy.cpp +++ b/src/mac/macnotfy.cpp @@ -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 ) @@ -58,7 +59,6 @@ void wxMacCreateNotifierTable() void wxMacDestroyNotifierTable() { - wxASSERT( gMacNotificationEvents.top == gMacNotificationEvents.bottom ) ; } wxMacNotifierTableRef wxMacGetNotifierTable()