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
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
fix(macos): try setAcceptsFirstMouse for hover without focus
Louis Beaumont04f4c9830ffe
diff --git a/screenpipe-app-tauri/src-tauri/src/commands.rs b/screenpipe-app-tauri/src-tauri/src/commands.rsindex 4c15eb70f..eed9217b5 100644--- a/screenpipe-app-tauri/src-tauri/src/commands.rs+++ b/screenpipe-app-tauri/src-tauri/src/commands.rs@@ -443,10 +443,14 @@ pub async fn show_shortcut_reminder(// Enable hover/mouse events without requiring focusunsafe {use std::ops::Deref;+ use tauri_nspanel::cocoa::base::YES;let panel_ptr = panel.deref() as *const _ as *mut objc::runtime::Object;- let _: () = msg_send![panel_ptr, setFloatingPanel: true];- let _: () = msg_send![panel_ptr, setAcceptsMouseMovedEvents: true];- let _: () = msg_send![panel_ptr, setBecomesKeyOnlyIfNeeded: true];+ let _: () = msg_send![panel_ptr, setFloatingPanel: YES];+ let _: () = msg_send![panel_ptr, setAcceptsMouseMovedEvents: YES];+ let _: () = msg_send![panel_ptr, setBecomesKeyOnlyIfNeeded: YES];+ // Allow first click to work without activating+ let content_view: *mut objc::runtime::Object = msg_send![panel_ptr, contentView];+ let _: () = msg_send![content_view, setAcceptsFirstMouse: YES];}// Order front regardless to show above fullscreenpanel.order_front_regardless();