From 3a7fb03ef953b39797261d48ed6c48272ffb160b Mon Sep 17 00:00:00 2001 From: Bryan Lee <38807139+liby@users.noreply.github.com> Date: Mon, 17 Feb 2025 23:54:14 +0800 Subject: [PATCH] Fix new window focus when quick terminal is open --- macos/Sources/Features/Terminal/TerminalManager.swift | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/macos/Sources/Features/Terminal/TerminalManager.swift b/macos/Sources/Features/Terminal/TerminalManager.swift index 42e35b90e..92dc46f3b 100644 --- a/macos/Sources/Features/Terminal/TerminalManager.swift +++ b/macos/Sources/Features/Terminal/TerminalManager.swift @@ -95,11 +95,8 @@ class TerminalManager { } } - // If our app isn't active, we make it active. All new_window actions - // force our app to be active. - if !NSApp.isActive { - NSApp.activate(ignoringOtherApps: true) - } + // All new_window actions force our app to be active. + NSApp.activate(ignoringOtherApps: true) // 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