corrected eventobject setting for mouse events and capture
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15255 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -429,6 +429,7 @@ void wxTopLevelWindowMac::MacFireMouseEvent( WXEVENTREF evr )
|
||||
wxTheApp->s_captureWindow->ScreenToClient( &x , &y ) ;
|
||||
event.m_x = x ;
|
||||
event.m_y = y ;
|
||||
event.SetEventObject( wxTheApp->s_captureWindow ) ;
|
||||
wxTheApp->s_captureWindow->GetEventHandler()->ProcessEvent( event ) ;
|
||||
|
||||
if ( ev->what == mouseUp )
|
||||
|
@@ -1417,6 +1417,7 @@ bool wxWindowMac::MacDispatchMouseEvent(wxMouseEvent& event)
|
||||
|
||||
event.m_x = x ;
|
||||
event.m_y = y ;
|
||||
event.SetEventObject( this ) ;
|
||||
|
||||
if ( wxBusyCursorCount == 0 )
|
||||
{
|
||||
|
@@ -429,6 +429,7 @@ void wxTopLevelWindowMac::MacFireMouseEvent( WXEVENTREF evr )
|
||||
wxTheApp->s_captureWindow->ScreenToClient( &x , &y ) ;
|
||||
event.m_x = x ;
|
||||
event.m_y = y ;
|
||||
event.SetEventObject( wxTheApp->s_captureWindow ) ;
|
||||
wxTheApp->s_captureWindow->GetEventHandler()->ProcessEvent( event ) ;
|
||||
|
||||
if ( ev->what == mouseUp )
|
||||
|
@@ -1417,6 +1417,7 @@ bool wxWindowMac::MacDispatchMouseEvent(wxMouseEvent& event)
|
||||
|
||||
event.m_x = x ;
|
||||
event.m_y = y ;
|
||||
event.SetEventObject( this ) ;
|
||||
|
||||
if ( wxBusyCursorCount == 0 )
|
||||
{
|
||||
|
Reference in New Issue
Block a user