refactor(focusSurface): check app status in advance
parent
8151f4bbf5
commit
337ecdd0b3
|
|
@ -239,9 +239,11 @@ class BaseTerminalController: NSWindowController,
|
|||
DispatchQueue.main.async {
|
||||
Ghostty.moveFocus(to: view, from: self.focusedSurface)
|
||||
view.window?.makeKeyAndOrderFront(nil)
|
||||
if !NSApp.isActive {
|
||||
NSApp.activate(ignoringOtherApps: true)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// Called when the surfaceTree variable changed.
|
||||
///
|
||||
|
|
|
|||
Loading…
Reference in New Issue