mirror of
https://github.com/lwouis/alt-tab-macos.git
synced 2026-05-24 11:20:36 +00:00
feat: improve support for color-slurp windows
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user