From: Stefan Csomor Date: Wed, 21 Jul 2004 05:25:08 +0000 (+0000) Subject: only on mouse-down X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/e4b7e0b4674b31b2c486b63b08ac9ce73b43734e?ds=inline only on mouse-down git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28346 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mac/carbon/toplevel.cpp b/src/mac/carbon/toplevel.cpp index ab1c994ddd..861645857d 100644 --- a/src/mac/carbon/toplevel.cpp +++ b/src/mac/carbon/toplevel.cpp @@ -557,7 +557,7 @@ pascal OSStatus wxMacTopLevelMouseEventHandler( EventHandlerCallRef handler , Ev // 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(kEventParamKeyModifiers, typeUInt32) ; Point clickLocation = windowMouseLocation ;