macos: newTab needs to call Controller.showWindow

This commit is contained in:
Mitchell Hashimoto
2023-12-08 08:46:05 -08:00
parent 2061acddc9
commit ec989d6b46
2 changed files with 6 additions and 1 deletions

View File

@ -122,6 +122,11 @@ class TerminalManager {
tg.removeWindow(window)
}
// Our windows start our invisible. We need to make it visible. If we
// don't do this then various features such as window blur won't work because
// the macOS APIs only work on a visible window.
controller.showWindow(self)
// Add the window to the tab group and show it
parent.addTabbedWindow(window, ordered: .above)
window.makeKeyAndOrderFront(self)

View File

@ -486,7 +486,7 @@ extension Ghostty {
cursorUpdate(with: NSEvent())
}
}
override func viewDidMoveToWindow() {
guard let window = self.window else { return }
guard let surface = self.surface else { return }