Merge pull request #804 from mitchellh/macos-demini

macos: deminiaturize on new tab
This commit is contained in:
Mitchell Hashimoto
2023-11-03 09:37:29 -07:00
committed by GitHub

View File

@ -86,6 +86,11 @@ class TerminalManager {
private func newTab(to parent: NSWindow, withBaseConfig base: Ghostty.SurfaceConfiguration?) {
// Create a new window and add it to the parent
let window = createWindow(withBaseConfig: base).window!
// If the parent is miniaturized, then macOS exhibits really strange behaviors
// so we have to bring it back out.
if (parent.isMiniaturized) { parent.deminiaturize(self) }
parent.addTabbedWindow(window, ordered: .above)
window.makeKeyAndOrderFront(self)
}