fix: add windows to target_os of TaoWindowEvent::Focused (fix #9755)

This commit is contained in:
kanatapple 2024-12-20 13:43:14 +09:00
parent 7d38ee987e
commit 15a769fb36
No known key found for this signature in database
GPG Key ID: CB20D2CB717788C0

View File

@ -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),