feat: show openboard window (#621)
This commit is contained in:
1 parent
2f4c56c9dd
commit
5b3560121a
1 file changed
+6
@@ -79,6 +79,7 @@ extension AXUIElement {
|
||||
// CGWindowLevel == .normalWindow helps filter out iStats Pro and other top-level pop-overs, and floating windows
|
||||
isOnNormalLevel &&
|
||||
([kAXStandardWindowSubrole, kAXDialogSubrole].contains(subrole) ||
|
||||
openBoard(runningApp) ||
|
||||
adobeAudition(runningApp, subrole) ||
|
||||
steam(runningApp, title, role) ||
|
||||
worldOfWarcraft(runningApp, role) ||
|
||||
@@ -90,6 +91,11 @@ extension AXUIElement {
|
||||
drBetotte(runningApp)))
|
||||
}
|
||||
|
||||
private func openBoard(_ 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 == "org.oe-f.OpenBoard"
|
||||
}
|
||||
|
||||
private func adobeAudition(_ runningApp: NSRunningApplication, _ subrole: String?) -> Bool {
|
||||
// Books.app has animations on window creation. This means windows are originally created with subrole == AXUnknown or isOnNormalLevel == false
|
||||
return runningApp.bundleIdentifier == "com.adobe.Audition" && subrole == kAXFloatingWindowSubrole
|
||||
|
||||
Reference in new issue
Block a user