Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

Merge remote-tracking branch 'refs/remotes/pr/2469' into HEAD

Richie McIlroy27855eaa682e
diff --cc crates/recording/src/sources/screen_capture/mod.rs
index 59001e505,dbd5bad75..8f6adecb0
--- a/crates/recording/src/sources/screen_capture/mod.rs
+++ b/crates/recording/src/sources/screen_capture/mod.rs
@@@ -380,10 -376,10 +380,12 @@@ pub struct Config
crop_bounds: Option<CropBounds>,
fps: u32,
show_cursor: bool,
+ #[cfg(windows)]
+ window: Option<WindowId>,
#[cfg(target_os = "linux")]
linux_source: LinuxCaptureSource,
+ #[cfg(target_os = "macos")]
+ window: Option<WindowId>,
}
#[cfg(target_os = "macos")]
@@@ -539,10 -532,10 +542,12 @@@ impl<TCaptureFormat: ScreenCaptureForma
crop_bounds,
fps,
show_cursor,
+ #[cfg(windows)]
+ window,
#[cfg(target_os = "linux")]
linux_source,
+ #[cfg(target_os = "macos")]
+ window,
},
video_info: VideoInfo::from_raw_ffmpeg(
TCaptureFormat::pixel_format(),