Fix new window focus when quick terminal is open

This commit is contained in:
Bryan Lee
2025-02-17 23:54:14 +08:00
committed by Mitchell Hashimoto
parent 3423cfdc71
commit 3a7fb03ef9

View File

@ -95,11 +95,8 @@ class TerminalManager {
} }
} }
// If our app isn't active, we make it active. All new_window actions // All new_window actions force our app to be active.
// force our app to be active. NSApp.activate(ignoringOtherApps: true)
if !NSApp.isActive {
NSApp.activate(ignoringOtherApps: true)
}
// We're dispatching this async because otherwise the lastCascadePoint doesn't // We're dispatching this async because otherwise the lastCascadePoint doesn't
// take effect. Our best theory is there is some next-event-loop-tick logic // take effect. Our best theory is there is some next-event-loop-tick logic