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

Bump app to v2.4.130 — windows-rs 0.58 GetWindowRect returns Result, use is_ok

Louis Beaumonta511bfe83655
diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml b/apps/screenpipe-app-tauri/src-tauri/Cargo.toml
index c758eb689..5680d64f6 100644
--- a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml
+++ b/apps/screenpipe-app-tauri/src-tauri/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "screenpipe-app"
-version = "2.4.129"
+version = "2.4.130"
description = "24/7 memory for your desktop. 100% local."
authors = ["you"]
license = ""
diff --git a/crates/screenpipe-a11y/src/tree/windows.rs b/crates/screenpipe-a11y/src/tree/windows.rs
index b93cf0b48..4127d988d 100644
--- a/crates/screenpipe-a11y/src/tree/windows.rs
+++ b/crates/screenpipe-a11y/src/tree/windows.rs
@@ -350,7 +350,7 @@ struct WindowRect {
fn get_window_rect(hwnd: HWND) -> Option<WindowRect> {
unsafe {
let mut r = RECT::default();
- if GetWindowRect(hwnd, &mut r).as_bool() {
+ if GetWindowRect(hwnd, &mut r).is_ok() {
let w = (r.right - r.left) as f64;
let h = (r.bottom - r.top) as f64;
if w > 0.0 && h > 0.0 {