From 38c55c9b9f8a32fea1922b2ea44071d606deef44 Mon Sep 17 00:00:00 2001 From: Emerson Max de Medeiros Silva Date: Thu, 6 Oct 2022 08:40:37 -0300 Subject: [PATCH] Add serialize to WindowFocused --- crates/bevy_window/src/event.rs | 1 + 1 file changed, 1 insertion(+) 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,