mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2025-01-12 05:31:31 +11:00
Call flush so that the wayland eventsloop correctly breaks from dispatch when wakeup is called
This commit is contained in:
parent
f6587aed39
commit
9ca2f83784
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue