fix: battle.net installer and wow were not showing in alt-tab
(closes #536)
This commit is contained in:
1 parent
eec694eae2
commit
793b10b862
1 file changed
+12
@@ -57,6 +57,8 @@ extension AXUIElement {
|
||||
isOnNormalLevel &&
|
||||
(["AXStandardWindow", "AXDialog"].contains(subrole) ||
|
||||
steam(runningApp, title, role) ||
|
||||
worldOfWarcraft(runningApp, role) ||
|
||||
battleNetBootstrapper(runningApp, role) ||
|
||||
firefoxFullscreenVideo(runningApp, role) ||
|
||||
androidEmulator(runningApp, title) ||
|
||||
sanGuoShaAirWD(runningApp) ||
|
||||
@@ -64,6 +66,16 @@ extension AXUIElement {
|
||||
drBetotte(runningApp))
|
||||
}
|
||||
|
||||
private func worldOfWarcraft(_ runningApp: NSRunningApplication, _ role: String?) -> Bool {
|
||||
// Battlenet bootstrapper windows have subrole == AXUnknown
|
||||
return runningApp.bundleIdentifier == "com.blizzard.worldofwarcraft" && role == "AXWindow"
|
||||
}
|
||||
|
||||
private func battleNetBootstrapper(_ runningApp: NSRunningApplication, _ role: String?) -> Bool {
|
||||
// Battlenet bootstrapper windows have subrole == AXUnknown
|
||||
return runningApp.bundleIdentifier == "net.battle.bootstrapper" && role == "AXWindow"
|
||||
}
|
||||
|
||||
private func drBetotte(_ runningApp: NSRunningApplication) -> Bool {
|
||||
return runningApp.bundleIdentifier == "com.ssworks.drbetotte"
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user