trying to solve cursor update problems with AUI, refs #15072
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73636 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1227,9 +1227,14 @@ bool wxWidgetCocoaImpl::SetupCursor(WX_NSEvent event)
|
||||
|
||||
while ( cursorTarget && !cursorTarget->MacSetupCursor( cursorPoint ) )
|
||||
{
|
||||
// at least in GTK cursor events are not propagated either ...
|
||||
#if 1
|
||||
cursorTarget = NULL;
|
||||
#else
|
||||
cursorTarget = cursorTarget->GetParent() ;
|
||||
if ( cursorTarget )
|
||||
cursorPoint += cursorTarget->GetPosition();
|
||||
#endif
|
||||
}
|
||||
|
||||
return cursorTarget != NULL;
|
||||
|
@@ -1814,6 +1814,8 @@ bool wxWindowMac::MacSetupCursor( const wxPoint& pt )
|
||||
if ( wxRect2DInt( clientorigin.x , clientorigin.y , clientsize.x , clientsize.y ).Contains( wxPoint2DInt( pt ) ) )
|
||||
{
|
||||
wxSetCursorEvent event( pt.x , pt.y );
|
||||
event.SetId(GetId());
|
||||
event.SetEventObject(this);
|
||||
|
||||
bool processedEvtSetCursor = HandleWindowEvent(event);
|
||||
if ( processedEvtSetCursor && event.HasCursor() )
|
||||
|
Reference in New Issue
Block a user