Call flush so that the wayland eventsloop correctly breaks from dispatch when wakeup is called
This commit is contained in:
parent
f6587aed39
commit
9ca2f83784
1 changed files with 1 additions and 1 deletions
|
|
@ -95,9 +95,9 @@ impl EventsLoopProxy {
|
||||||
(Some(ctxt), Some(wakeup)) => {
|
(Some(ctxt), Some(wakeup)) => {
|
||||||
// Update the `EventsLoop`'s `pending_wakeup` flag.
|
// Update the `EventsLoop`'s `pending_wakeup` flag.
|
||||||
wakeup.store(true, atomic::Ordering::Relaxed);
|
wakeup.store(true, atomic::Ordering::Relaxed);
|
||||||
// TODO:
|
|
||||||
// Cause the `EventsLoop` to break from `dispatch` if it is currently blocked.
|
// Cause the `EventsLoop` to break from `dispatch` if it is currently blocked.
|
||||||
ctxt.display.sync();
|
ctxt.display.sync();
|
||||||
|
ctxt.display.flush().ok();
|
||||||
Ok(())
|
Ok(())
|
||||||
},
|
},
|
||||||
_ => Err(EventsLoopClosed),
|
_ => Err(EventsLoopClosed),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue