Skip to content

Commit

Permalink
fix: avoid random delay after releasing shortcut (closes #563)
Browse files Browse the repository at this point in the history
  • Loading branch information
lwouis committed Sep 4, 2020
1 parent 78d1d8f commit cbc4c39
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/logic/Window.swift
Expand Up @@ -137,9 +137,7 @@ class Window {
}

func focus() {
if application.pid == ProcessInfo.processInfo.processIdentifier {
App.app.showSecondaryWindow(App.app.window(withWindowNumber: Int(cgWindowId)))
} else if isWindowlessApp {
if isWindowlessApp {
if let bundleID = application.runningApplication.bundleIdentifier {
NSWorkspace.shared.launchApplication(withBundleIdentifier: bundleID, additionalEventParamDescriptor: nil, launchIdentifier: nil)
} else {
Expand Down

0 comments on commit cbc4c39

Please sign in to comment.