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:
parent
e4940febd0
commit
8198ae5017
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user