macOS: fix window sizing after dragging a split into a window

This commit is contained in:
Lukas
2026-08-07 15:14:30 +02:00
parent 7e567c3f03
commit 96826853bd

View File

@@ -344,14 +344,15 @@ class TerminalController: BaseTerminalController, TabGroupCloseCoordinator.Contr
confirmUndo: Bool = true,
inheritBackgroundOpacity: Bool? = nil
) -> TerminalController {
// Calculate the target frame based on the tree's view bounds
// before moving into the new window
let treeSize: CGSize? = tree.root?.viewBounds()
let c = TerminalController.init(ghostty, withSurfaceTree: tree)
if let inheritBackgroundOpacity {
c.isBackgroundOpaque = inheritBackgroundOpacity
}
// Calculate the target frame based on the tree's view bounds
let treeSize: CGSize? = tree.root?.viewBounds()
c.scheduleInitialPresentation {
c.showWindow(self)
if let window = c.window {