From 9ca2f8378401b14e06aee908900b317fd0951659 Mon Sep 17 00:00:00 2001 From: mitchmindtree Date: Sat, 27 May 2017 22:51:59 +1000 Subject: [PATCH] Call flush so that the wayland eventsloop correctly breaks from dispatch when wakeup is called --- src/platform/linux/wayland/event_loop.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/linux/wayland/event_loop.rs b/src/platform/linux/wayland/event_loop.rs index 8f6f066b..17b136a3 100644 --- a/src/platform/linux/wayland/event_loop.rs +++ b/src/platform/linux/wayland/event_loop.rs @@ -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),