mirror of
https://github.com/rust-windowing/winit.git
synced 2026-06-28 07:33:14 -04:00
wayland: fix event dispatch, avoid double wait
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user