From 15a769fb36793253ec9e2e110edfd793062cc33d Mon Sep 17 00:00:00 2001 From: kanatapple Date: Fri, 20 Dec 2024 13:43:14 +0900 Subject: [PATCH] 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 82a93edf3..11a274933 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),