We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5068ff4 commit bb6ab1bCopy full SHA for bb6ab1b
1 file changed
src/platform_impl/windows/event_loop.rs
@@ -400,7 +400,9 @@ impl<T> EventLoopRunner<T> {
400
};
401
self.call_event_handler(Event::NewEvents(start_cause));
402
},
403
- ControlFlow::Poll |
+ // This can be reached if the control flow is changed to poll during a `RedrawRequested`
404
+ // that was sent after `EventsCleared`.
405
+ ControlFlow::Poll => self.call_event_handler(Event::NewEvents(StartCause::Poll)),
406
ControlFlow::Exit => unreachable!()
407
}
408
0 commit comments