mirror of
https://github.com/lwouis/alt-tab-macos.git
synced 2026-05-24 11:20:36 +00:00
fix: certain jetbrain apps windows were not shown (closes #948)
This commit is contained in:
@@ -85,7 +85,7 @@ extension AXUIElement {
|
||||
(books(runningApp) || keynote(runningApp) || (
|
||||
// CGWindowLevel == .normalWindow helps filter out iStats Pro and other top-level pop-overs, and floating windows
|
||||
level == AXUIElement.normalLevel &&
|
||||
jetbrainApp(runningApp, title) &&
|
||||
jetbrainApp(runningApp, title, subrole) &&
|
||||
([kAXStandardWindowSubrole, kAXDialogSubrole].contains(subrole) ||
|
||||
openBoard(runningApp) ||
|
||||
adobeAudition(runningApp, subrole) ||
|
||||
@@ -100,10 +100,11 @@ extension AXUIElement {
|
||||
drBetotte(runningApp))))
|
||||
}
|
||||
|
||||
private static func jetbrainApp(_ runningApp: NSRunningApplication, _ title: 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
|
||||
// they have no title, so we can filter them out based on that
|
||||
return runningApp.bundleIdentifier?.range(of: "^com\\.jetbrains\\..+?$", options: .regularExpression) == nil || (title != nil && title != "")
|
||||
return runningApp.bundleIdentifier?.range(of: "^com\\.jetbrains\\..+?$", options: .regularExpression) == nil ||
|
||||
(subrole == kAXStandardWindowSubrole || title != nil && title != "")
|
||||
}
|
||||
|
||||
private static func keynote(_ runningApp: NSRunningApplication) -> Bool {
|
||||
|
||||
Reference in New Issue
Block a user