mirror of
https://github.com/rust-windowing/winit.git
synced 2026-09-02 06:40:06 -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.flush();
|
||||||
self.ctxt.dispatch();
|
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
|
// some events were dispatched, need to process a potential resising
|
||||||
self.process_resize();
|
self.process_resize();
|
||||||
}
|
}
|
||||||
// try again
|
// try again
|
||||||
let mut guard = self.eviter.lock().unwrap();
|
let mut guard = self.eviter.lock().unwrap();
|
||||||
evt = guard.pop_front()
|
evt = guard.pop_front();
|
||||||
}
|
}
|
||||||
evt
|
evt
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user