Skip to content

Commit

Permalink
Rebased on main 2
Browse files Browse the repository at this point in the history
  • Loading branch information
ManevilleF committed Mar 8, 2022
1 parent 763d4da commit 8aa9c82
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions crates/bevy_winit/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,11 @@ pub fn winit_runner_with(mut app: App) {
winit_state.active = true;
}
event::Event::MainEventsCleared => {
handle_create_window_events(
&mut app.world,
event_loop,
&mut create_window_event_reader,
);
let winit_config = app.world.resource::<WinitSettings>();
let update = if winit_state.active {
let windows = app.world.resource::<Windows>();
Expand All @@ -556,11 +561,6 @@ pub fn winit_runner_with(mut app: App) {
false
};
if update {
handle_create_window_events(
&mut app.world,
event_loop,
&mut create_window_event_reader,
);
winit_state.last_update = Instant::now();
app.update();
}
Expand Down

0 comments on commit 8aa9c82

Please sign in to comment.