Skip to content

Commit

Permalink
fix: dock being shown was blocking alt-tab
Browse files Browse the repository at this point in the history
  • Loading branch information
louis.pontoise authored and lwouis committed Mar 10, 2020
1 parent 4ded030 commit 2826a1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion alt-tab-macos/api-wrappers/CGWindow.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2826a1b

Please sign in to comment.