Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

also capture windows having no pid (#1615)

Divanshu Grover22ff009cbc54
diff --git a/screenpipe-vision/src/capture_screenshot_by_window.rs b/screenpipe-vision/src/capture_screenshot_by_window.rs
index 0cc5c8741..76e157f05 100644
--- a/screenpipe-vision/src/capture_screenshot_by_window.rs
+++ b/screenpipe-vision/src/capture_screenshot_by_window.rs
@@ -230,13 +230,13 @@ pub async fn capture_all_visible_windows(
};
let process_id = match window.pid() {
- Ok(pid) => pid,
+ Ok(pid) => pid as i32,
Err(e) => {
error!(
"Failed to get process ID for window {} ({}): {}",
app_name, title, e
);
- return None;
+ -1
}
};