From 8198ae501799b3240f6fc17838ffdd587afe6114 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Mon, 13 Sep 2004 04:41:29 +0000 Subject: [PATCH] searching for wxToolBar parent only for kEventMouseMoved events git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29115 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/toplevel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mac/carbon/toplevel.cpp b/src/mac/carbon/toplevel.cpp index 18b9a9b984..111ecb1995 100644 --- a/src/mac/carbon/toplevel.cpp +++ b/src/mac/carbon/toplevel.cpp @@ -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) -- 2.45.2