]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/toplevel.cpp
tried to make Close() docs more clear
[wxWidgets.git] / src / mac / toplevel.cpp
index 4db55381ad8d803456f266b6b1dda78752dbc4a6..b9acd02cc0d5b52ea3e93eb79e9332a6b7b780f7 100644 (file)
@@ -581,7 +581,13 @@ void wxTopLevelWindowMac::MacActivate( WXEVENTREF ev , bool inIsActivating )
     
     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 )