mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-24 06:11:30 +11:00
wayland: fix event dispatch, avoid double wait
This commit is contained in:
parent
2d025a4a35
commit
42d73a1488
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue