From 60c37a41b9a868ff0a8885c3410c238ab0e081e1 Mon Sep 17 00:00:00 2001 From: lzhgus Date: Sat, 11 Apr 2026 08:57:00 -0700 Subject: [PATCH] fix: allow capturing Capso's own windows (e.g. Settings) Window capture was filtering out all Capso windows by app name, which excluded Settings and other normal windows. Now only exclude the capture overlay windows by their specific window IDs. --- App/Sources/Capture/CaptureCoordinator.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/App/Sources/Capture/CaptureCoordinator.swift b/App/Sources/Capture/CaptureCoordinator.swift index dd4df85..2826f83 100644 --- a/App/Sources/Capture/CaptureCoordinator.swift +++ b/App/Sources/Capture/CaptureCoordinator.swift @@ -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")