Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
Fix window exclusion and placement handling
Richie McIlroybdb9e51f8fe7
diff --git a/apps/desktop/src-tauri/src/target_select_overlay.rs b/apps/desktop/src-tauri/src/target_select_overlay.rsindex 1ea7a0642..6374e4340 100644--- a/apps/desktop/src-tauri/src/target_select_overlay.rs+++ b/apps/desktop/src-tauri/src/target_select_overlay.rs@@ -142,7 +142,7 @@ fn should_skip_window(window: &Window, exclusions: &[WindowExclusion]) -> bool {exclusions.iter().any(|entry| {entry.matches(- bundle_identifier.as_deref(),+ bundle_identifier,owner_name.as_deref(),window_title.as_deref(),)@@ -260,8 +260,10 @@ pub async fn focus_window(window_id: WindowId) -> Result<(), String> {// Only restore if the window is actually minimizedif IsIconic(hwnd).as_bool() {// Get current window placement to preserve size/position- let mut wp = WINDOWPLACEMENT::default();- wp.length = std::mem::size_of::<WINDOWPLACEMENT>() as u32;+ let mut wp = WINDOWPLACEMENT {+ length: std::mem::size_of::<WINDOWPLACEMENT>() as u32,+ ..Default::default()+ };if GetWindowPlacement(hwnd, &mut wp).is_ok() {// Restore using the previous placement to avoid resizing