mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-20 10:46:07 +03:00
Merge pull request #804 from mitchellh/macos-demini
macos: deminiaturize on new tab
This commit is contained in:
@ -86,6 +86,11 @@ class TerminalManager {
|
|||||||
private func newTab(to parent: NSWindow, withBaseConfig base: Ghostty.SurfaceConfiguration?) {
|
private func newTab(to parent: NSWindow, withBaseConfig base: Ghostty.SurfaceConfiguration?) {
|
||||||
// Create a new window and add it to the parent
|
// Create a new window and add it to the parent
|
||||||
let window = createWindow(withBaseConfig: base).window!
|
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)
|
parent.addTabbedWindow(window, ordered: .above)
|
||||||
window.makeKeyAndOrderFront(self)
|
window.makeKeyAndOrderFront(self)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user