mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2025-01-11 13:31:29 +11:00
Merge pull request #190 from mitchmindtree/wayland_reset_interrupt
wayland: Reset the `interrupted` flag before breaking from run_forever
This commit is contained in:
commit
f9f1000d8c
|
@ -181,6 +181,8 @@ impl EventsLoop {
|
||||||
pub fn run_forever<F>(&self, callback: F)
|
pub fn run_forever<F>(&self, callback: F)
|
||||||
where F: FnMut(::Event)
|
where F: FnMut(::Event)
|
||||||
{
|
{
|
||||||
|
self.interrupted.store(false, ::std::sync::atomic::Ordering::Relaxed);
|
||||||
|
|
||||||
// send pending requests to the server...
|
// send pending requests to the server...
|
||||||
self.ctxt.flush();
|
self.ctxt.flush();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue