feat: support adobe after effects non-standard windows (closes #1982)

This commit is contained in:
Louis Pontoise committed 2022-11-02 16:49:30 +01:00
1 parent 281b3ed45b
commit 7b54873f08
1 file changed
+5
+5
View File
@@ -90,6 +90,7 @@ extension AXUIElement {
([kAXStandardWindowSubrole, kAXDialogSubrole].contains(subrole) ||
openBoard(runningApp) ||
adobeAudition(runningApp, subrole) ||
adobeAfterEffects(runningApp, subrole) ||
steam(runningApp, title, role) ||
worldOfWarcraft(runningApp, role) ||
battleNetBootstrapper(runningApp, role) ||
@@ -136,6 +137,10 @@ extension AXUIElement {
return runningApp.bundleIdentifier == "com.adobe.Audition" && subrole == kAXFloatingWindowSubrole
}
private static func adobeAfterEffects(_ runningApp: NSRunningApplication, _ subrole: String?) -> Bool {
return runningApp.bundleIdentifier == "com.adobe.AfterEffects" && subrole == kAXFloatingWindowSubrole
}
private static func books(_ runningApp: NSRunningApplication) -> Bool {
// Books.app has animations on window creation. This means windows are originally created with subrole == AXUnknown or isOnNormalLevel == false
return runningApp.bundleIdentifier == "com.apple.iBooksX"