From 802c644d94160925817713dbc6b0a8959a07844c Mon Sep 17 00:00:00 2001 From: daboe01 Date: Sun, 22 Feb 2026 14:54:46 +0100 Subject: [PATCH] Fixed: CPWindow setContentView: overlapping the toolbar --- AppKit/CPWindow/CPWindow.j | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/AppKit/CPWindow/CPWindow.j b/AppKit/CPWindow/CPWindow.j index 023193871..1b233d067 100644 --- a/AppKit/CPWindow/CPWindow.j +++ b/AppKit/CPWindow/CPWindow.j @@ -1266,6 +1266,10 @@ CPTexturedBackgroundWindowMask [_contentView setAutoresizingMask:CPViewWidthSizable | CPViewHeightSizable]; [_windowView addSubview:_contentView]; + // The window view manages the exact layout of the content view (e.g. offsetting for the toolbar). + if ([_windowView respondsToSelector:@selector(tile)]) + [_windowView tile]; + /* If the initial first responder has been set to something other than the window, set it to the window because it will no longer be valid.