setting the correct event object for EVT_ENTER_WINDOW and EVT_LEAVE_WINDOW
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15302 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
ba3e10c9f4
commit
d1bdc41d65
@ -1764,6 +1764,7 @@ void wxApp::MacHandleOSEvent( WXEVENTREF evr )
|
||||
wxMouseEvent eventleave(event);
|
||||
eventleave.SetEventType( wxEVT_LEAVE_WINDOW );
|
||||
wxWindow::s_lastMouseWindow->ScreenToClient( &eventleave.m_x, &eventleave.m_y );
|
||||
eventleave.SetEventObject( wxWindow::s_lastMouseWindow ) ;
|
||||
|
||||
wxWindow::s_lastMouseWindow->GetEventHandler()->ProcessEvent(eventleave);
|
||||
}
|
||||
@ -1772,7 +1773,7 @@ void wxApp::MacHandleOSEvent( WXEVENTREF evr )
|
||||
wxMouseEvent evententer(event);
|
||||
evententer.SetEventType( wxEVT_ENTER_WINDOW );
|
||||
currentMouseWindow->ScreenToClient( &evententer.m_x, &evententer.m_y );
|
||||
|
||||
evententer.SetEventObject( currentMouseWindow ) ;
|
||||
currentMouseWindow->GetEventHandler()->ProcessEvent(evententer);
|
||||
}
|
||||
wxWindow::s_lastMouseWindow = currentMouseWindow ;
|
||||
|
@ -1764,6 +1764,7 @@ void wxApp::MacHandleOSEvent( WXEVENTREF evr )
|
||||
wxMouseEvent eventleave(event);
|
||||
eventleave.SetEventType( wxEVT_LEAVE_WINDOW );
|
||||
wxWindow::s_lastMouseWindow->ScreenToClient( &eventleave.m_x, &eventleave.m_y );
|
||||
eventleave.SetEventObject( wxWindow::s_lastMouseWindow ) ;
|
||||
|
||||
wxWindow::s_lastMouseWindow->GetEventHandler()->ProcessEvent(eventleave);
|
||||
}
|
||||
@ -1772,7 +1773,7 @@ void wxApp::MacHandleOSEvent( WXEVENTREF evr )
|
||||
wxMouseEvent evententer(event);
|
||||
evententer.SetEventType( wxEVT_ENTER_WINDOW );
|
||||
currentMouseWindow->ScreenToClient( &evententer.m_x, &evententer.m_y );
|
||||
|
||||
evententer.SetEventObject( currentMouseWindow ) ;
|
||||
currentMouseWindow->GetEventHandler()->ProcessEvent(evententer);
|
||||
}
|
||||
wxWindow::s_lastMouseWindow = currentMouseWindow ;
|
||||
|
Loading…
Reference in New Issue
Block a user