Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ private struct CharacterPickerPopover {
}

private func windowCandidates() throws -> [Window.Description] {
try Window.listDescriptions(.all, excludeDesktopElements: true)
// `.onScreen` lets CG skip off-screen windows up front; `isCandidateWindow` still requires `isOnscreen == true`.
try Window.listDescriptions(.onScreen, excludeDesktopElements: true)
.filter(isCandidateWindow)
.sorted { score($0) < score($1) }
}
Expand Down