mirror of
https://github.com/rust-windowing/winit.git
synced 2026-06-27 23:23:14 -04:00
Call flush so that the wayland eventsloop correctly breaks from dispatch when wakeup is called
This commit is contained in:
@@ -95,9 +95,9 @@ impl EventsLoopProxy {
|
||||
(Some(ctxt), Some(wakeup)) => {
|
||||
// Update the `EventsLoop`'s `pending_wakeup` flag.
|
||||
wakeup.store(true, atomic::Ordering::Relaxed);
|
||||
// TODO:
|
||||
// Cause the `EventsLoop` to break from `dispatch` if it is currently blocked.
|
||||
ctxt.display.sync();
|
||||
ctxt.display.flush().ok();
|
||||
Ok(())
|
||||
},
|
||||
_ => Err(EventsLoopClosed),
|
||||
|
||||
Reference in New Issue
Block a user