Some simplification and tidying up of the previous commit
Explain why the order here is important. Also get rid of now unnecessary temporary variable.
This commit is contained in:
@@ -3579,13 +3579,13 @@ bool wxWidgetCocoaImpl::DoHandleKeyEvent(NSEvent *event)
|
|||||||
|
|
||||||
bool wxWidgetCocoaImpl::DoHandleMouseEvent(NSEvent *event)
|
bool wxWidgetCocoaImpl::DoHandleMouseEvent(NSEvent *event)
|
||||||
{
|
{
|
||||||
|
// Call this before handling the event in case the event handler destroys
|
||||||
|
// this window.
|
||||||
(void)SetupCursor(event);
|
(void)SetupCursor(event);
|
||||||
|
|
||||||
wxMouseEvent wxevent(wxEVT_LEFT_DOWN);
|
wxMouseEvent wxevent(wxEVT_LEFT_DOWN);
|
||||||
SetupMouseEvent(wxevent , event) ;
|
SetupMouseEvent(wxevent , event) ;
|
||||||
bool result = GetWXPeer()->HandleWindowEvent(wxevent);
|
return GetWXPeer()->HandleWindowEvent(wxevent);
|
||||||
|
|
||||||
return result;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxWidgetCocoaImpl::DoNotifyFocusSet()
|
void wxWidgetCocoaImpl::DoNotifyFocusSet()
|
||||||
|
Reference in New Issue
Block a user