macOS: follow up cascading fix for #14118

Didn't respect the comment above before when reverting and testing hidden title 🫪
This commit is contained in:
Lukas
2026-09-03 09:16:32 +02:00
parent 31bdcd5a79
commit e8936b8969

View File

@@ -297,9 +297,11 @@ class TerminalController: BaseTerminalController, TabGroupCloseCoordinator.Contr
if !window.styleMask.contains(.fullScreen) {
let hasFixedPos = c.derivedConfig.windowPositionX != nil && c.derivedConfig.windowPositionY != nil
// We're dispatching this async because otherwise the lastCascadePoint doesn't
// take effect. Our best theory is there is some next-event-loop-tick logic
// that Cocoa is doing that we need to be after.
Self.applyCascade(to: window, hasFixedPos: hasFixedPos)
// take effect after positioning in `showWindow`. Our best theory is there is
// some next-event-loop-tick logic that Cocoa is doing that we need to be after.
DispatchQueue.main.async {
Self.applyCascade(to: window, hasFixedPos: hasFixedPos)
}
}
}