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: pinch-to-zoom broken after focus loss + never worked in window-mode

Louis Beaumontc5aafcadb6c8
diff --git a/apps/screenpipe-app-tauri/src-tauri/src/window_api.rs b/apps/screenpipe-app-tauri/src-tauri/src/window_api.rs
index 27674fc5f..23efc0f24 100644
--- a/apps/screenpipe-app-tauri/src-tauri/src/window_api.rs
+++ b/apps/screenpipe-app-tauri/src-tauri/src/window_api.rs
@@ -797,6 +797,7 @@ impl ShowRewindWindow {
NSWindowCollectionBehavior::NSWindowCollectionBehaviorMoveToActiveSpace |
NSWindowCollectionBehavior::NSWindowCollectionBehaviorFullScreenAuxiliary
);
+ unsafe { make_webview_first_responder(&panel); }
panel.order_front_regardless();
panel.make_key_window();
let _ = app_for_emit.emit("window-focused", true);
@@ -859,6 +860,7 @@ impl ShowRewindWindow {
if let Ok(panel) = app_clone.get_webview_panel("main-window") {
unsafe {
let _: () = msg_send![&*panel, setAlphaValue: 1.0f64];
+ make_webview_first_responder(&panel);
}
}
}
@@ -1160,6 +1162,7 @@ impl ShowRewindWindow {
if let Ok(panel) = app_clone.get_webview_panel(&lbl) {
unsafe {
let _: () = msg_send![&*panel, setAlphaValue: 1.0f64];
+ make_webview_first_responder(&panel);
}
}
}