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:
parent
3de6d1eb17
commit
df2f0321fb
1 changed files with 3 additions and 3 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue