Merge branch 'mac-mouse-event-crash'
Closes https://github.com/wxWidgets/wxWidgets/pull/640
This commit is contained in:
commit
ebcba7a385
@ -3579,13 +3579,13 @@ bool wxWidgetCocoaImpl::DoHandleKeyEvent(NSEvent *event)
|
|||||||
|
|
||||||
bool wxWidgetCocoaImpl::DoHandleMouseEvent(NSEvent *event)
|
bool wxWidgetCocoaImpl::DoHandleMouseEvent(NSEvent *event)
|
||||||
{
|
{
|
||||||
wxMouseEvent wxevent(wxEVT_LEFT_DOWN);
|
// Call this before handling the event in case the event handler destroys
|
||||||
SetupMouseEvent(wxevent , event) ;
|
// this window.
|
||||||
bool result = GetWXPeer()->HandleWindowEvent(wxevent);
|
|
||||||
|
|
||||||
(void)SetupCursor(event);
|
(void)SetupCursor(event);
|
||||||
|
|
||||||
return result;
|
wxMouseEvent wxevent(wxEVT_LEFT_DOWN);
|
||||||
|
SetupMouseEvent(wxevent , event) ;
|
||||||
|
return GetWXPeer()->HandleWindowEvent(wxevent);
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxWidgetCocoaImpl::DoNotifyFocusSet()
|
void wxWidgetCocoaImpl::DoNotifyFocusSet()
|
||||||
|
Loading…
Reference in New Issue
Block a user