* fix: re-assert always-on-top for overlay on Windows On Windows, the recording/transcribing overlay can lose its topmost Z-order and fall behind other windows during certain window manager events (e.g., dragging windows, alt-tabbing, or other apps asserting focus). This fix uses the Win32 SetWindowPos API directly with HWND_TOPMOST to aggressively re-assert the overlay's Z-order immediately after showing it. Key implementation details: - Uses Tauri 2's WebviewWindow::hwnd() to get the native handle - Calls SetWindowPos on the main UI thread via run_on_main_thread - Applies flags: SWP_NOMOVE | SWP_NOSIZE | SWP_NOACTIVATE | SWP_SHOWWINDOW - SWP_NOACTIVATE prevents stealing focus from the active window - SWP_SHOWWINDOW reinforces the topmost state during the show The fix is called after .show() in both show_recording_overlay and show_transcribing_overlay, which is more reliable than setting it before the window is visible. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * keep the fix to windows only --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: CJ Pais <cj@cjpais.com> |
||
|---|---|---|
| .. | ||
| capabilities | ||
| gen/apple | ||
| icons | ||
| resources | ||
| src | ||
| .gitignore | ||
| build.rs | ||
| Cargo.lock | ||
| Cargo.toml | ||
| Entitlements.plist | ||
| Info.plist | ||
| rustfmt.toml | ||
| tauri.conf.json | ||