From 574a6401b974c96322aa65cca7db208ab6ab7249 Mon Sep 17 00:00:00 2001 From: Louis Pontoise Date: Thu, 26 Mar 2020 18:33:49 +0900 Subject: [PATCH] fix: simpler/better window focus --- src/logic/Window.swift | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/logic/Window.swift b/src/logic/Window.swift index 8d5598f1..df8c83a9 100644 --- a/src/logic/Window.swift +++ b/src/logic/Window.swift @@ -75,8 +75,6 @@ class Window { CGSGetWindowOwner(cgsMainConnectionId, self.cgWindowId, &elementConnection) var psn = ProcessSerialNumber() CGSGetConnectionPSN(elementConnection, &psn) - AXUIElementPerformAction(self.axUiElement, kAXRaiseAction as CFString) - self.makeKeyWindow(psn) _SLPSSetFrontProcessWithOptions(&psn, self.cgWindowId, .userGenerated) self.makeKeyWindow(psn) AXUIElementPerformAction(self.axUiElement, kAXRaiseAction as CFString)