static Point gs_lastWhere;
static long gs_lastWhen = 0;
-// cursor stuff
-extern int wxBusyCursorCount;
-
-
// ============================================================================
// wxTopLevelWindowMac implementation
// ============================================================================
wxNode *node = wxWinMacWindowList->Find((long)inWindowRef);
if (!node)
return NULL;
- return (wxTopLevelWindowMac *)node->Data();
+ return (wxTopLevelWindowMac *)node->GetData();
}
void wxAssociateWinWithMacWindow(WXWindow inWindowRef, wxTopLevelWindowMac *win)
if ( ev->what == mouseUp )
{
wxTheApp->s_captureWindow = NULL ;
- if ( wxBusyCursorCount == 0 )
+ if ( !wxIsBusy() )
{
m_cursor.MacInstall() ;
}
UMAHighlightAndActivateWindow( (WindowRef)m_macWindow , inIsActivating ) ;
- MacSuperEnabled( inIsActivating ) ;
+ // Early versions of MacOS X don't refresh backgrounds properly,
+ // so refresh the whole window on activation and deactivation.
+ long osVersion = UMAGetSystemVersion();
+ if (osVersion >= 0x1000 && osVersion < 0x1020)
+ Refresh(TRUE);
+ else
+ MacSuperEnabled( inIsActivating ) ;
}
void wxTopLevelWindowMac::MacKeyDown( WXEVENTREF ev )