add window::Id to Event and Action

This commit is contained in:
Richard 2022-09-19 20:59:37 -03:00 committed by bungoboingo
parent 974cc6b6f5
commit 0ad53a3d5c
11 changed files with 99 additions and 78 deletions

View file

@ -52,7 +52,7 @@ impl Application for Events {
}
}
Message::EventOccurred(event) => {
if let Event::Window(window::Event::CloseRequested) = event {
if let Event::Window(_, window::Event::CloseRequested) = event {
self.should_exit = true;
}
}