make sure we don't miss resizes even when no sizers are involved
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33562 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -715,6 +715,7 @@ static pascal OSStatus wxMacTopLevelWindowEventHandler( EventHandlerCallRef hand
|
|||||||
event.SetEventObject( toplevelWindow ) ;
|
event.SetEventObject( toplevelWindow ) ;
|
||||||
|
|
||||||
toplevelWindow->GetEventHandler()->ProcessEvent(event) ;
|
toplevelWindow->GetEventHandler()->ProcessEvent(event) ;
|
||||||
|
frame->wxWindowMac::MacSuperChangedPosition() ; // like this only children will be notified
|
||||||
}
|
}
|
||||||
if ( attributes & kWindowBoundsChangeOriginChanged )
|
if ( attributes & kWindowBoundsChangeOriginChanged )
|
||||||
{
|
{
|
||||||
@@ -755,6 +756,7 @@ static pascal OSStatus wxMacTopLevelWindowEventHandler( EventHandlerCallRef hand
|
|||||||
const Rect adjustedRect = { adjustR.y + top , adjustR.x + left , adjustR.y + adjustR.height - bottom , adjustR.x + adjustR.width - right } ;
|
const Rect adjustedRect = { adjustR.y + top , adjustR.x + left , adjustR.y + adjustR.height - bottom , adjustR.x + adjustR.width - right } ;
|
||||||
if ( !EqualRect( &newRect , &adjustedRect ) )
|
if ( !EqualRect( &newRect , &adjustedRect ) )
|
||||||
cEvent.SetParameter<Rect>( kEventParamCurrentBounds , &adjustedRect ) ;
|
cEvent.SetParameter<Rect>( kEventParamCurrentBounds , &adjustedRect ) ;
|
||||||
|
toplevelWindow->wxWindowMac::MacSuperChangedPosition() ; // like this only children will be notified
|
||||||
}
|
}
|
||||||
|
|
||||||
result = noErr ;
|
result = noErr ;
|
||||||
@@ -1387,6 +1389,7 @@ void wxTopLevelWindowMac::DoMoveWindow(int x, int y, int width, int height)
|
|||||||
m_cachedClippedRectValid = false ;
|
m_cachedClippedRectValid = false ;
|
||||||
Rect bounds = { y , x , y + height , x + width } ;
|
Rect bounds = { y , x , y + height , x + width } ;
|
||||||
verify_noerr(SetWindowBounds( (WindowRef) m_macWindow, kWindowStructureRgn , &bounds )) ;
|
verify_noerr(SetWindowBounds( (WindowRef) m_macWindow, kWindowStructureRgn , &bounds )) ;
|
||||||
|
wxWindowMac::MacSuperChangedPosition() ; // like this only children will be notified
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxTopLevelWindowMac::DoGetPosition( int *x, int *y ) const
|
void wxTopLevelWindowMac::DoGetPosition( int *x, int *y ) const
|
||||||
|
Reference in New Issue
Block a user