mirror of
https://github.com/rust-windowing/winit.git
synced 2026-06-27 23:23:14 -04: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:
@@ -181,6 +181,8 @@ impl EventsLoop {
|
||||
pub fn run_forever<F>(&self, callback: F)
|
||||
where F: FnMut(::Event)
|
||||
{
|
||||
self.interrupted.store(false, ::std::sync::atomic::Ordering::Relaxed);
|
||||
|
||||
// send pending requests to the server...
|
||||
self.ctxt.flush();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user