diff --git a/crates/bevy_window/src/event.rs b/crates/bevy_window/src/event.rs index a432e559c28cf..5f97b1ac410ce 100644 --- a/crates/bevy_window/src/event.rs +++ b/crates/bevy_window/src/event.rs @@ -105,6 +105,7 @@ pub struct ReceivedCharacter { /// An event that indicates a window has received or lost focus. #[derive(Debug, Clone, PartialEq, Eq)] +#[cfg_attr(feature = "serialize", derive(serde::Serialize, serde::Deserialize))] pub struct WindowFocused { pub id: WindowId, pub focused: bool,