mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
macos: newTab needs to call Controller.showWindow
This commit is contained in:
@ -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)
|
||||
|
@ -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 }
|
||||
|
Reference in New Issue
Block a user