diff --git a/crates/bevy_winit/src/winit_event.rs b/crates/bevy_winit/src/winit_event.rs index 400fc3eb575d9..99df2053fd2d8 100644 --- a/crates/bevy_winit/src/winit_event.rs +++ b/crates/bevy_winit/src/winit_event.rs @@ -189,6 +189,9 @@ impl From for WinitEvent { /// Forwards buffered [`WinitEvent`] events to the app. pub(crate) fn forward_winit_events(buffered_events: &mut Vec, app: &mut App) { + if buffered_events.is_empty() { + return; + } for winit_event in buffered_events.iter() { match winit_event.clone() { WinitEvent::ApplicationLifetime(e) => {