]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/app.cpp
implementation changes to closer follow MSW, crashes fixed
[wxWidgets.git] / src / mac / carbon / app.cpp
index 381dc7fb4281c8599448e5549be93fbcc3d54ae3..98505dac772f0b47c4eeaa31d3e5a0d71f99ad2f 100644 (file)
@@ -1540,9 +1540,12 @@ void wxApp::MacHandleMouseDownEvent( WXEVENTREF evr )
                     }
                     else
                     {
+                        // Activate window first
+                        ::SelectWindow( window ) ;
+                        
+                        // Send event later
                         if ( win )
                             win->MacMouseDown( ev , windowPart ) ;
-                        ::SelectWindow( window ) ;
                     }
                 }
                 else