From f6669958924c3c3833e2932b65598b06073d2e65 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Fri, 14 Dec 2012 20:04:57 +0000 Subject: [PATCH] support SDK < 10.6, fixes #14902 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73192 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/osx/cocoa/window.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osx/cocoa/window.mm b/src/osx/cocoa/window.mm index 07cdeee8a0..5e2a80e53f 100644 --- a/src/osx/cocoa/window.mm +++ b/src/osx/cocoa/window.mm @@ -1150,7 +1150,7 @@ void wxWidgetCocoaImpl::mouseEvent(WX_NSEvent event, WXWidget slf, void *_cmd) // super of built-ins keeps the mouse up, as wx expects this event, we have to synthesize it // only trigger if at this moment the mouse is already up - if ( [ event type] == NSLeftMouseDown && !( [NSEvent pressedMouseButtons] & 0x01) ) + if ( [ event type] == NSLeftMouseDown && !wxGetMouseState().LeftIsDown() ) { wxMouseEvent wxevent(wxEVT_LEFT_DOWN); SetupMouseEvent(wxevent , event) ; -- 2.45.2