Skip to content

Commit

Permalink
feat: improve focus in show:apps mode (closes #3951)
Browse files Browse the repository at this point in the history
  • Loading branch information
lwouis committed Dec 9, 2024
1 parent ac70fcc commit cb191d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/logic/Window.swift
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ class Window {
App.app.window(withWindowNumber: Int(cgWindowId!))?.makeKeyAndOrderFront(nil)
Windows.previewFocusedWindowIfNeeded()
} else if isWindowlessApp || cgWindowId == nil || Preferences.onlyShowApplications() {
if let bundleUrl = bundleUrl {
if let bundleUrl = bundleUrl, isWindowlessApp {
if (try? NSWorkspace.shared.launchApplication(at: bundleUrl, configuration: [:])) == nil {
application.runningApplication.activate(options: .activateAllWindows)
}
Expand Down

0 comments on commit cb191d6

Please sign in to comment.