fix: dock being shown was blocking alt-tab

This commit is contained in:
louis.pontoise authored and lwouis committed 2020-03-10 14:00:37 +09:00
1 parent 4ded030a35
commit 2826a1b872
1 file changed
+1 -1
+1 -1
View File
@@ -11,7 +11,7 @@ extension CGWindow {
static func isMissionControlActive() -> Bool {
// when Mission Control is active, the Dock process spawns some windows. We observe this side-effect and infer
for window in windows(.optionOnScreenOnly) {
guard window.ownerName() == "Dock" else { continue }
guard window.ownerName() == "Dock", window.title() == nil else { continue }
return true
}
return false