Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

refactor(recording): hide X11Grabber and X11InputConfig from public docs

shubhook5696e87f5daa
diff --git a/crates/recording/src/sources/screen_capture/linux.rs b/crates/recording/src/sources/screen_capture/linux.rs
index 9bef9b5e3..f262d0db6 100644
--- a/crates/recording/src/sources/screen_capture/linux.rs
+++ b/crates/recording/src/sources/screen_capture/linux.rs
@@ -71,6 +71,9 @@ enum LinuxInputConfig {
Wayland(WaylandInputConfig),
}
+// Public only so `examples/x11-capture-benchmark.rs` and
+// `tests/x11_shm_capture.rs` can drive the grabber directly; not a supported API.
+#[doc(hidden)]
pub struct X11InputConfig {
pub display_name: String,
pub window_id: Option<u32>,
@@ -2033,6 +2036,10 @@ fn capture_x11(
/// FFmpeg (spacedrive native-deps) is built without. Capturing with `x11rb`
/// keeps us off any system FFmpeg/libavdevice and adds no new runtime
/// shared-library dependency (`x11rb` speaks the X11 protocol over a socket).
+///
+/// Public (but hidden) only for the X11 capture benchmark and integration
+/// tests; not a supported API.
+#[doc(hidden)]
pub struct X11Grabber {
conn: Arc<RustConnection>,
root: x11rb::protocol::xproto::Window,