From e890a603c2ebbe783b50ce858d08b23d33c84c4d Mon Sep 17 00:00:00 2001 From: lwouis Date: Tue, 30 Jul 2024 11:59:58 +0200 Subject: [PATCH] fix: preview window could remain after focusing an app (closes #3505) --- src/logic/Window.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/src/logic/Window.swift b/src/logic/Window.swift index ffbfea38..a91403a9 100644 --- a/src/logic/Window.swift +++ b/src/logic/Window.swift @@ -181,6 +181,7 @@ class Window { } else { application.runningApplication.activate(options: .activateIgnoringOtherApps) } + Windows.previewFocusedWindowIfNeeded() } else if let bundleID = application.runningApplication.bundleIdentifier, bundleID == App.id { App.shared.activate(ignoringOtherApps: true) App.app.window(withWindowNumber: Int(cgWindowId!))?.makeKeyAndOrderFront(nil)