git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28346
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// for some reason returning eventNotHandledErr does not lead to the correct behaviour
// so we try sending them the correct control directly
wxTopLevelWindowMac* toplevelWindow = (wxTopLevelWindowMac*) data ;
- if ( toplevelWindow && control )
+ if ( cEvent.GetKind() == kEventMouseDown && toplevelWindow && control )
{
EventModifiers modifiers = cEvent.GetParameter<EventModifiers>(kEventParamKeyModifiers, typeUInt32) ;
Point clickLocation = windowMouseLocation ;