summaryrefslogtreecommitdiffstats
path: root/examples/events
diff options
context:
space:
mode:
authorLibravatar Richard <richardsoncusto@gmail.com>2022-09-19 20:59:37 -0300
committerLibravatar bungoboingo <shankern@protonmail.com>2023-01-09 11:27:04 -0800
commit0ad53a3d5c7b5fb5785a64102ee1ad7df9a5fb2b (patch)
treefdb06bd6a9d878bb3eaa9ffb93814660a4809555 /examples/events
parent974cc6b6f55178976b0ace626ba03bdd88cde5e0 (diff)
downloadiced-0ad53a3d5c7b5fb5785a64102ee1ad7df9a5fb2b.tar.gz
iced-0ad53a3d5c7b5fb5785a64102ee1ad7df9a5fb2b.tar.bz2
iced-0ad53a3d5c7b5fb5785a64102ee1ad7df9a5fb2b.zip
add `window::Id` to `Event` and `Action`
Diffstat (limited to 'examples/events')
-rw-r--r--examples/events/src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/events/src/main.rs b/examples/events/src/main.rs
index 234e1423..e9709377 100644
--- a/examples/events/src/main.rs
+++ b/examples/events/src/main.rs
@@ -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;
}
}