Skip to content
Merged
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
5 changes: 4 additions & 1 deletion App/Sources/Capture/CaptureCoordinator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,11 @@ final class CaptureCoordinator {
// Enumerate windows first, then show overlay in window selection mode
Task {
do {
// Exclude only Capso's overlay windows (not all Capso windows
// like Settings) so the user can still capture them.
let overlayIDs = Set(overlayWindows.map { CGWindowID($0.windowNumber) })
let windows = try await ContentEnumerator.windows()
.filter { $0.appName != "Capso" }
.filter { !overlayIDs.contains($0.id) }

guard !windows.isEmpty else {
print("No windows found to capture")
Expand Down
Loading