add window::Id to Event and Action
This commit is contained in:
parent
974cc6b6f5
commit
0ad53a3d5c
11 changed files with 99 additions and 78 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue