Skip to content

Commit

Permalink
fix: sanguosha game wasn't listed in alt-tab (closes #441)
Browse files Browse the repository at this point in the history
  • Loading branch information
lwouis committed Jul 21, 2020
1 parent 1b956b3 commit e67b075
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/api-wrappers/AXUIElement.swift
Expand Up @@ -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 {
Expand Down

0 comments on commit e67b075

Please sign in to comment.