]> git.saurik.com Git - wxWidgets.git/commitdiff
only on mouse-down
authorStefan Csomor <csomor@advancedconcepts.ch>
Wed, 21 Jul 2004 05:25:08 +0000 (05:25 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Wed, 21 Jul 2004 05:25:08 +0000 (05:25 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28346 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/toplevel.cpp

index ab1c994ddd867a960ea38cf4900ef6b174961c3a..861645857df2a61136b625ee6d7de506f5a04083 100644 (file)
@@ -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<EventModifiers>(kEventParamKeyModifiers, typeUInt32) ;
             Point clickLocation = windowMouseLocation ;