Fix event loop not waking up due to repeat source
Force the wake up from the repeat source as well.
Fixes: cad327755 (On Wayland, reduce amount of spurious wakeups)
This commit is contained in:
parent
5f7955cb2b
commit
e9ebf1e5f4
3 changed files with 8 additions and 1 deletions
|
|
@ -124,7 +124,7 @@ impl<T: 'static> EventLoop<T> {
|
|||
event_loop.handle().insert_source(
|
||||
event_loop_awakener_source,
|
||||
move |_, _, winit_state: &mut WinitState| {
|
||||
// No extra handling is required, we just need to wake-up.
|
||||
// Mark that we have something to dispatch.
|
||||
winit_state.dispatched_events = true;
|
||||
},
|
||||
)?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue