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(app): re-enable space listener + magnify handler

Louis Beaumont4514729d2ce5
diff --git a/apps/screenpipe-app-tauri/src-tauri/src/main.rs b/apps/screenpipe-app-tauri/src-tauri/src/main.rs
index c6d0c47eb..fdc4fba6d 100755
--- a/apps/screenpipe-app-tauri/src-tauri/src/main.rs
+++ b/apps/screenpipe-app-tauri/src-tauri/src/main.rs
@@ -1067,9 +1067,14 @@ async fn main() {
}
});
- // 26.5 repro bisect: startup hooks disabled
- // space_monitor::setup_space_listener(app.handle().clone());
- // crate::window::init_magnify_handler(app.handle().clone());
+ // Hide overlay when user switches Spaces (e.g. three-finger swipe).
+ // This no longer causes feedback loops because we removed
+ // activateIgnoringOtherApps + activation policy toggling.
+ space_monitor::setup_space_listener(app.handle().clone());
+
+ // Set up pinch-to-zoom: store the app handle so the gesture
+ // recognizer callback (in window/gesture.rs) can emit Tauri events.
+ crate::window::init_magnify_handler(app.handle().clone());
}