mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-25 19:54:07 +03:00
fix: add windows to target_os of TaoWindowEvent::Focused (fix #9755)
This commit is contained in:
parent
7d38ee987e
commit
15a769fb36
@ -530,7 +530,7 @@ impl<'a> From<&TaoWindowEvent<'a>> for WindowEventWrapper {
|
|||||||
scale_factor: *scale_factor,
|
scale_factor: *scale_factor,
|
||||||
new_inner_size: PhysicalSizeWrapper(**new_inner_size).into(),
|
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::Focused(focused) => WindowEvent::Focused(*focused),
|
||||||
TaoWindowEvent::ThemeChanged(theme) => WindowEvent::ThemeChanged(map_theme(theme)),
|
TaoWindowEvent::ThemeChanged(theme) => WindowEvent::ThemeChanged(map_theme(theme)),
|
||||||
_ => return Self(None),
|
_ => return Self(None),
|
||||||
|
Loading…
Reference in New Issue
Block a user