diff --git a/lcl/interfaces/cocoa/cocoawscommon.pas b/lcl/interfaces/cocoa/cocoawscommon.pas index 2d99d6625d..a9b1ec7d66 100644 --- a/lcl/interfaces/cocoa/cocoawscommon.pas +++ b/lcl/interfaces/cocoa/cocoawscommon.pas @@ -1144,7 +1144,7 @@ begin else begin if Event.window<>GetCocoaWindowAtPos(GetScreenPointFromEvent(Event)) then - exit( true ); + exit; rect:=Target.BoundsRect; OffsetRect(rect, -rect.Left, -rect.Top);