diff --git a/src/api-wrappers/AXUIElement.swift b/src/api-wrappers/AXUIElement.swift index 9c981071a..239e888d6 100644 --- a/src/api-wrappers/AXUIElement.swift +++ b/src/api-wrappers/AXUIElement.swift @@ -99,7 +99,8 @@ extension AXUIElement { sanGuoShaAirWD(runningApp) || dvdFab(runningApp) || drBetotte(runningApp) || - androidEmulator(runningApp, title) + androidEmulator(runningApp, title) || + colorSlurp(runningApp) ) && mustHaveIfJetbrainApp(runningApp, title, subrole, size!) && mustHaveIfSteam(runningApp, title, role) @@ -200,6 +201,11 @@ extension AXUIElement { return title != "" && Applications.isAndroidEmulator(runningApp) } + private static func colorSlurp(_ runningApp: NSRunningApplication) -> Bool { + // ColorSlurp presents its dialog as a kAXSystemDialogSubrole, so we need a special check + return runningApp.bundleIdentifier == "com.IdeaPunch.ColorSlurp" + } + func position() throws -> CGPoint? { return try value(kAXPositionAttribute, CGPoint.zero, .cgPoint) }