From 42d73a14885539cac707ac840cdbdb131cf30cfe Mon Sep 17 00:00:00 2001 From: Victor Berger Date: Sun, 9 Oct 2016 18:26:46 +0200 Subject: [PATCH] wayland: fix event dispatch, avoid double wait --- src/api/wayland/window.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/wayland/window.rs b/src/api/wayland/window.rs index 70b0d566..b286b404 100644 --- a/src/api/wayland/window.rs +++ b/src/api/wayland/window.rs @@ -148,13 +148,13 @@ impl Window { { self.ctxt.flush(); self.ctxt.dispatch(); - let mut guard = self.evq.lock().unwrap().dispatch(); + let mut guard = self.evq.lock().unwrap().dispatch_pending(); // some events were dispatched, need to process a potential resising self.process_resize(); } // try again let mut guard = self.eviter.lock().unwrap(); - evt = guard.pop_front() + evt = guard.pop_front(); } evt }