mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
fix: focus lost when closing tab when using stage manager on macOS
This commit is contained in:
@ -452,6 +452,12 @@ class BaseTerminalController: NSWindowController,
|
|||||||
self.alert = nil
|
self.alert = nil
|
||||||
switch (response) {
|
switch (response) {
|
||||||
case .alertFirstButtonReturn:
|
case .alertFirstButtonReturn:
|
||||||
|
if let windows = window.tabGroup?.windows, windows.count > 1 {
|
||||||
|
let secondLastWindow = windows[windows.count - 2]
|
||||||
|
secondLastWindow.makeKeyAndOrderFront(nil)
|
||||||
|
secondLastWindow.makeFirstResponder(nil)
|
||||||
|
window.close()
|
||||||
|
}
|
||||||
window.close()
|
window.close()
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
Reference in New Issue
Block a user