Window event loop waits instead of polls

This commit is contained in:
mars 2022-10-27 22:31:02 -06:00
parent 40e8507d83
commit 786413ed0c
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ impl WindowStore {
pub fn run(self, event_loop: EventLoop<WindowMessage>) -> ! {
event_loop.run(move |event, event_loop, control_flow| {
*control_flow = ControlFlow::Poll;
*control_flow = ControlFlow::Wait;
match event {
Event::WindowEvent { window_id, event } => match event {
_ => {}