fix: sanguosha game wasn't listed in alt-tab (closes #441)

This commit is contained in:
Louis Pontoise authored and lwouis committed 2020-07-21 16:51:45 +09:00
1 parent 1b956b3862
commit e67b07572d
1 file changed
+6 -1
+6 -1
View File
@@ -58,7 +58,12 @@ extension AXUIElement {
(["AXStandardWindow", "AXDialog"].contains(subrole) ||
steam(runningApp, title, role) ||
firefoxFullscreenVideo(runningApp, role) ||
androidEmulator(runningApp, title))
androidEmulator(runningApp, title) ||
SanGuoShaAirWD(runningApp))
}
private func SanGuoShaAirWD(_ runningApp: NSRunningApplication) -> Bool {
return runningApp.bundleIdentifier == "SanGuoShaAirWD"
}
private func steam(_ runningApp: NSRunningApplication, _ title: String?, _ role: String?) -> Bool {