mirror of
https://github.com/lwouis/alt-tab-macos.git
synced 2026-05-24 11:20:36 +00:00
fix: preview window could remain after focusing an app (closes #3505)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user