mirror of
https://github.com/lwouis/alt-tab-macos.git
synced 2026-05-24 11:20:36 +00:00
fix: better crossover windows detection
This commit is contained in:
@@ -215,7 +215,7 @@ extension AXUIElement {
|
||||
}
|
||||
|
||||
private static func crossoverWindow(_ runningApp: NSRunningApplication, _ role: String?, _ subrole: String?, _ level: CGWindowLevel) -> Bool {
|
||||
return runningApp.bundleIdentifier == nil && role == kAXWindowRole && subrole == kAXUnknownSubrole && level == CGWindow.baseLevel
|
||||
return runningApp.bundleIdentifier == nil && role == kAXWindowRole && subrole == kAXUnknownSubrole && level == CGWindow.normalLevel
|
||||
&& (runningApp.localizedName == "wine64-preloader" || runningApp.executableURL?.absoluteString.contains("/winetemp-") ?? false)
|
||||
}
|
||||
|
||||
|
||||
@@ -4,7 +4,6 @@ typealias CGWindow = [CFString: Any]
|
||||
|
||||
extension CGWindow {
|
||||
static let normalLevel = CGWindowLevelForKey(.normalWindow)
|
||||
static let baseLevel = CGWindowLevelForKey(.baseWindow)
|
||||
static let floatingWindow = CGWindowLevelForKey(.floatingWindow)
|
||||
|
||||
static func windows(_ option: CGWindowListOption) -> [CGWindow] {
|
||||
|
||||
Reference in New Issue
Block a user