]> git.saurik.com Git - wxWidgets.git/commitdiff
searching for wxToolBar parent only for kEventMouseMoved events
authorStefan Csomor <csomor@advancedconcepts.ch>
Mon, 13 Sep 2004 04:41:29 +0000 (04:41 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Mon, 13 Sep 2004 04:41:29 +0000 (04:41 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29115 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/toplevel.cpp

index 18b9a9b984f93bb7e89a35835bd0e2a8b6a16c45..111ecb19953a7dabe64cce792bb4defbef07c926 100644 (file)
@@ -444,7 +444,7 @@ pascal OSStatus wxMacTopLevelMouseEventHandler( EventHandlerCallRef handler , Ev
             else
             {
                 currentMouseWindow = wxFindControlFromMacControl( control ) ;
-                if ( currentMouseWindow == NULL )
+                if ( currentMouseWindow == NULL && cEvent.GetKind() == kEventMouseMoved )
                 {
                        // for wxToolBar to function we have to send certaint events to it
                        // instead of its children (wxToolBarTools)