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
This commit is contained in:
Stefan Csomor 2004-09-13 04:41:29 +00:00
parent e4940febd0
commit 8198ae5017

View 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)