fix: display all windows from android studio
This commit is contained in:
1 parent
98c144efe8
commit
e2d26f2abc
2 files changed
+2
-3
No files matched your search
@@ -103,7 +103,7 @@ extension AXUIElement {
|
|||||||
private static func jetbrainApp(_ runningApp: NSRunningApplication, _ title: String?, _ subrole: String?) -> Bool {
|
private static func jetbrainApp(_ runningApp: NSRunningApplication, _ title: String?, _ subrole: String?) -> Bool {
|
||||||
// jetbrain apps sometimes generate non-windows that pass all checks in isActualWindow
|
// jetbrain apps sometimes generate non-windows that pass all checks in isActualWindow
|
||||||
// they have no title, so we can filter them out based on that
|
// they have no title, so we can filter them out based on that
|
||||||
return runningApp.bundleIdentifier?.range(of: "^com\\.jetbrains\\..+?$", options: .regularExpression) == nil ||
|
return runningApp.bundleIdentifier?.range(of: "^com\\.(jetbrains\\.|google\\.android\\.studio).+?$", options: .regularExpression) == nil ||
|
||||||
(subrole == kAXStandardWindowSubrole || title != nil && title != "")
|
(subrole == kAXStandardWindowSubrole || title != nil && title != "")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -31,8 +31,7 @@ class Application: NSObject {
|
|||||||
if app.bundleIdentifier == "edu.stanford.protege" ||
|
if app.bundleIdentifier == "edu.stanford.protege" ||
|
||||||
app.bundleIdentifier?.range(of: "^com\\.install4j\\..+?$", options: .regularExpression) != nil ||
|
app.bundleIdentifier?.range(of: "^com\\.install4j\\..+?$", options: .regularExpression) != nil ||
|
||||||
app.bundleIdentifier?.range(of: "^com\\.live2d\\.cubism\\..+?$", options: .regularExpression) != nil ||
|
app.bundleIdentifier?.range(of: "^com\\.live2d\\.cubism\\..+?$", options: .regularExpression) != nil ||
|
||||||
app.bundleIdentifier?.range(of: "^com\\.jetbrains\\..+?$", options: .regularExpression) != nil ||
|
app.bundleIdentifier?.range(of: "^com\\.(jetbrains\\.|google\\.android\\.studio).+?$", options: .regularExpression) != nil {
|
||||||
app.bundleIdentifier?.range(of: "^com\\.google\\.android\\.studio.*?$", options: .regularExpression) != nil {
|
|
||||||
return n.filter { $0 != kAXFocusedUIElementChangedNotification }
|
return n.filter { $0 != kAXFocusedUIElementChangedNotification }
|
||||||
}
|
}
|
||||||
return n
|
return n
|
||||||
|
|||||||
Reference in new issue
Block a user