]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/app.cpp
don't make wxBitmapButtons same size as all the other buttons
[wxWidgets.git] / src / mac / carbon / app.cpp
index 1ba90860626f7168f3095d5593c77f736cea0968..1a02ff2e587aeacf24f0a864ab6d37b20b158502 100644 (file)
@@ -976,19 +976,24 @@ bool wxApp::Yield(bool onlyIfNeeded)
 
 void wxApp::MacSuspend( bool convertClipboard )
 {
-    // we have to deactive the window manually
+    // we have to deactive the top level windows manually
 
-    wxTopLevelWindow* window = (wxTopLevelWindow*) GetTopWindow() ;
-    if ( window )
-        window->MacActivate( MacGetCurrentEvent() , false ) ;
+    wxNode* node = wxTopLevelWindows.First();
+    while (node)
+    {
+        wxTopLevelWindow* win = (wxTopLevelWindow*) node->Data();
+        win->MacActivate( MacGetCurrentEvent() , false ) ;
 
-        s_lastMouseDown = 0 ;
-        if( convertClipboard )
-        {
-            MacConvertPrivateToPublicScrap() ;
-        }
+        node = node->Next();
+    }
+
+     s_lastMouseDown = 0 ;
+     if( convertClipboard )
+     {
+         MacConvertPrivateToPublicScrap() ;
+     }
 
-        ::HideFloatingWindows() ;
+     ::HideFloatingWindows() ;
 }
 
 void wxApp::MacResume( bool convertClipboard )
@@ -1156,7 +1161,6 @@ void wxApp::MacHandleMouseDownEvent( EventRecord *ev )
                     #else
                     SetPort( (window) ) ;
                     #endif
-                    SetOrigin( 0 , 0 ) ;
                     LocalToGlobal( &pt ) ;
                     SetPort( port ) ;
                         win->SetSize( pt.h , pt.v , -1 ,
@@ -1227,7 +1231,6 @@ void wxApp::MacHandleMouseDownEvent( EventRecord *ev )
                     #else
                     SetPort( (window) ) ;
                     #endif
-                    SetOrigin( 0 , 0 ) ;
                     SetPort( port ) ;
                 }
                 if ( window != frontWindow && wxTheApp->s_captureWindow == NULL )