mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-08-24 16:11:43 +00:00
macOS: fix window sizing after dragging a split into a window
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user