From 15a769fb36793253ec9e2e110edfd793062cc33d Mon Sep 17 00:00:00 2001 From: kanatapple Date: Fri, 20 Dec 2024 13:43:14 +0900 Subject: [PATCH 1/2] fix: add windows to target_os of TaoWindowEvent::Focused (fix #9755) --- crates/tauri-runtime-wry/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/tauri-runtime-wry/src/lib.rs b/crates/tauri-runtime-wry/src/lib.rs index 82a93edf3c13..11a2749332e8 100644 --- a/crates/tauri-runtime-wry/src/lib.rs +++ b/crates/tauri-runtime-wry/src/lib.rs @@ -530,7 +530,7 @@ impl<'a> From<&TaoWindowEvent<'a>> for WindowEventWrapper { scale_factor: *scale_factor, new_inner_size: PhysicalSizeWrapper(**new_inner_size).into(), }, - #[cfg(any(target_os = "linux", target_os = "macos"))] + #[cfg(any(target_os = "linux", target_os = "macos", target_os = "windows"))] TaoWindowEvent::Focused(focused) => WindowEvent::Focused(*focused), TaoWindowEvent::ThemeChanged(theme) => WindowEvent::ThemeChanged(map_theme(theme)), _ => return Self(None), From 70a5cf7c41f22ea37699ec9fb824117a5874e1a1 Mon Sep 17 00:00:00 2001 From: Fabian-Lars Date: Thu, 2 Jan 2025 11:01:15 +0100 Subject: [PATCH 2/2] Update crates/tauri-runtime-wry/src/lib.rs --- crates/tauri-runtime-wry/src/lib.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/crates/tauri-runtime-wry/src/lib.rs b/crates/tauri-runtime-wry/src/lib.rs index 11a2749332e8..790b9a6ef995 100644 --- a/crates/tauri-runtime-wry/src/lib.rs +++ b/crates/tauri-runtime-wry/src/lib.rs @@ -530,7 +530,6 @@ impl<'a> From<&TaoWindowEvent<'a>> for WindowEventWrapper { scale_factor: *scale_factor, new_inner_size: PhysicalSizeWrapper(**new_inner_size).into(), }, - #[cfg(any(target_os = "linux", target_os = "macos", target_os = "windows"))] TaoWindowEvent::Focused(focused) => WindowEvent::Focused(*focused), TaoWindowEvent::ThemeChanged(theme) => WindowEvent::ThemeChanged(map_theme(theme)), _ => return Self(None),