macOS: fix window position when dragging split into a new window

This commit is contained in:
Lukas
2026-03-12 19:54:41 +01:00
parent 3022aa05ea
commit 07bc888682

View File

@@ -318,8 +318,9 @@ class TerminalController: BaseTerminalController, TabGroupCloseCoordinator.Contr
// Calculate the target frame based on the tree's view bounds
let treeSize: CGSize? = tree.root?.viewBounds()
DispatchQueue.main.async {
c.showWindow(self)
if let window = c.window {
// If we have a tree size, resize the window's content to match
if let treeSize, treeSize.width > 0, treeSize.height > 0 {
@@ -337,8 +338,6 @@ class TerminalController: BaseTerminalController, TabGroupCloseCoordinator.Contr
}
}
}
c.showWindow(self)
}
// Setup our undo