From e4b7e0b4674b31b2c486b63b08ac9ce73b43734e Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Wed, 21 Jul 2004 05:25:08 +0000 Subject: [PATCH] only on mouse-down git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28346 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/toplevel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ; -- 2.50.0