diff --git a/lcl/interfaces/carbon/carbonthemes.pas b/lcl/interfaces/carbon/carbonthemes.pas index a3c52a803f..aba740748c 100644 --- a/lcl/interfaces/carbon/carbonthemes.pas +++ b/lcl/interfaces/carbon/carbonthemes.pas @@ -423,6 +423,7 @@ begin WindowDrawInfo.state := WindowWidgetDrawInfo.windowState; WindowDrawInfo.titleHeight := WindowWidgetDrawInfo.titleHeight; WindowDrawInfo.titleWidth := WindowWidgetDrawInfo.titleWidth; + WindowShape:=nil; HIThemeGetWindowShape(BtnRect, WindowDrawInfo, WindowRegion, WindowShape); HIShapeGetBounds(WindowShape, BtnRect); Offset := CGRectToRect(BtnRect).TopLeft; @@ -597,6 +598,7 @@ begin WindowDrawInfo.titleHeight := 0; WindowDrawInfo.titleWidth := 0; + WindowShape:=nil; HIThemeGetWindowShape(BtnRect, WindowDrawInfo, kWindowCloseBoxRgn, WindowShape); HIShapeGetBounds(WindowShape, BtnRect); with BtnRect.size do