diff options
Diffstat (limited to 'glutin/src/application.rs')
-rw-r--r-- | glutin/src/application.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/glutin/src/application.rs b/glutin/src/application.rs index 5921bdd0..24f38e7b 100644 --- a/glutin/src/application.rs +++ b/glutin/src/application.rs @@ -343,6 +343,7 @@ async fn run_instance<A, E, C>( // Then, we can use the `interface_state` here to decide if a redraw // is needed right away, or simply wait until a specific time. let redraw_event = Event::Window( + crate::window::Id::MAIN, crate::window::Event::RedrawRequested(Instant::now()), ); @@ -492,6 +493,7 @@ async fn run_instance<A, E, C>( state.update(context.window(), &window_event, &mut debug); if let Some(event) = conversion::window_event( + crate::window::Id::MAIN, &window_event, state.scale_factor(), state.modifiers(), |