mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-06 07:38:21 +00:00
macOS: fix window cascading for the second window
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user