macOS: fix window cascading for the second window

pull/11426/head
Lukas 2026-03-12 18:25:38 +01:00
parent ea262cdd34
commit 5e3866381b
No known key found for this signature in database
GPG Key ID: 1944A0A77B561220
1 changed files with 3 additions and 1 deletions

View File

@ -200,7 +200,9 @@ class TerminalController: BaseTerminalController, TabGroupCloseCoordinator.Contr
if all.count > 1 {
lastCascadePoint = window.cascadeTopLeft(from: lastCascadePoint)
} else {
lastCascadePoint = window.cascadeTopLeft(from: NSPoint(x: window.frame.minX, y: window.frame.maxY))
// We assume the window frame is already correct at this point,
// so we pass .zero to let cascade use the current frame position.
lastCascadePoint = window.cascadeTopLeft(from: .zero)
}
}