We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee010de commit d543393Copy full SHA for d543393
src/api-wrappers/AXUIElement.swift
@@ -204,7 +204,7 @@ extension AXUIElement {
204
/// with only normal approach: we miss other-Spaces windows
205
/// with only brute-force approach: we miss windows when the app launches (e.g. launch Note.app: first window is not found by brute-force)
206
func allWindows(_ pid: pid_t) throws -> [AXUIElement] {
207
- let aWindows = try! windows()
+ let aWindows = try windows()
208
let bWindows = AXUIElement.windowsByBruteForce(pid)
209
return Array(Set(aWindows + bWindows))
210
}
0 commit comments