Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

fix(cli): restore Duration import as cfg(macos) and add comment on excluded windows

ManthanNimodiya740b46335745
diff --git a/apps/cli/src/doctor.rs b/apps/cli/src/doctor.rs
index fe05a09ce..7af926165 100644
--- a/apps/cli/src/doctor.rs
+++ b/apps/cli/src/doctor.rs
@@ -1,5 +1,7 @@
use serde::Serialize;
use std::path::{Path, PathBuf};
+#[cfg(target_os = "macos")]
+use std::time::Duration;
use crate::{OutputFormat, write_json};
diff --git a/apps/desktop/src-tauri/src/general_settings.rs b/apps/desktop/src-tauri/src/general_settings.rs
index a8ccbe4af..a8003c4a8 100644
--- a/apps/desktop/src-tauri/src/general_settings.rs
+++ b/apps/desktop/src-tauri/src/general_settings.rs
@@ -91,6 +91,8 @@ impl MainWindowRecordingStartBehaviour {
}
}
+// NOTE: Do not add "Cap Target Select" here — on Windows, WDA_EXCLUDEFROMCAPTURE applied to that
+// hidden window causes it to reappear as a ghost overlay after recording ends.
const DEFAULT_EXCLUDED_WINDOW_TITLES: &[&str] = &[
"Cap",
"Cap Settings",