-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
findWindow (find windowRef (AX Window) by `SCWindow`) using `_AXUIElementGetWindow` closes #75
- Loading branch information
1 parent
87332c1
commit 00ae43e
Showing
3 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// | ||
// PrivateApis.swift | ||
// DockDoor | ||
// | ||
// Created by ShlomoCode on 10/07/2024. | ||
// | ||
|
||
import Cocoa | ||
|
||
// returns the CGWindowID of the provided AXUIElement | ||
// * macOS 10.10+ | ||
@_silgen_name("_AXUIElementGetWindow") @discardableResult | ||
func _AXUIElementGetWindow(_ axUiElement: AXUIElement, _ wid: inout CGWindowID) -> AXError |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters