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

fix(windows): re-assert topmost position when showing overlay

louis03019551612ebf6df0
diff --git a/screenpipe-app-tauri/src-tauri/src/window_api.rs b/screenpipe-app-tauri/src-tauri/src/window_api.rs
index 2ed6a5909..d968f1711 100644
--- a/screenpipe-app-tauri/src-tauri/src/window_api.rs
+++ b/screenpipe-app-tauri/src-tauri/src/window_api.rs
@@ -305,7 +305,15 @@ impl ShowRewindWindow {
}
}).ok();
}
- #[cfg(not(target_os = "macos"))]
+ #[cfg(target_os = "windows")]
+ {
+ window.show().ok();
+ // Re-assert topmost position to ensure we're above the taskbar
+ if let Err(e) = crate::windows_overlay::bring_to_front(&window) {
+ error!("Failed to bring window to front: {}", e);
+ }
+ }
+ #[cfg(target_os = "linux")]
{
window.show().ok();
}