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:
Vadim Zeitlin
2017-12-15 16:52:41 +01:00
parent 3de6d1eb17
commit df2f0321fb

View File

@@ -3579,13 +3579,13 @@ bool wxWidgetCocoaImpl::DoHandleKeyEvent(NSEvent *event)
bool wxWidgetCocoaImpl::DoHandleMouseEvent(NSEvent *event)
{
// Call this before handling the event in case the event handler destroys
// this window.
(void)SetupCursor(event);
wxMouseEvent wxevent(wxEVT_LEFT_DOWN);
SetupMouseEvent(wxevent , event) ;
bool result = GetWXPeer()->HandleWindowEvent(wxevent);
return result;
return GetWXPeer()->HandleWindowEvent(wxevent);
}
void wxWidgetCocoaImpl::DoNotifyFocusSet()