fix: preview window could remain after focusing an app (closes #3505)

This commit is contained in:
lwouis
2024-07-30 12:00:44 +02:00
parent 97951e7e8e
commit e890a603c2
+1
View File
@@ -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)