Skip to content

Commit

Permalink
fix: simpler/better window focus
Browse files Browse the repository at this point in the history
  • Loading branch information
lwouis committed Apr 2, 2020
1 parent 65816a2 commit 574a640
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/logic/Window.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 574a640

Please sign in to comment.