We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 763d4da commit 8aa9c82Copy full SHA for 8aa9c82
crates/bevy_winit/src/lib.rs
@@ -540,6 +540,11 @@ pub fn winit_runner_with(mut app: App) {
540
winit_state.active = true;
541
}
542
event::Event::MainEventsCleared => {
543
+ handle_create_window_events(
544
+ &mut app.world,
545
+ event_loop,
546
+ &mut create_window_event_reader,
547
+ );
548
let winit_config = app.world.resource::<WinitSettings>();
549
let update = if winit_state.active {
550
let windows = app.world.resource::<Windows>();
@@ -556,11 +561,6 @@ pub fn winit_runner_with(mut app: App) {
556
561
false
557
562
};
558
563
if update {
559
- handle_create_window_events(
560
- &mut app.world,
- event_loop,
- &mut create_window_event_reader,
- );
564
winit_state.last_update = Instant::now();
565
app.update();
566
0 commit comments