summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-06-04 23:20:33 +0200
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-06-10 22:03:46 +0200
commite400f972c1fe6fa4f70f8cfe559ded680e6cf740 (patch)
tree3f026bfdf489c367ff007b6513752c8060014a4d /runtime
parent49affc44ff57ad879a73d9b4d329863d6f4b1d2c (diff)
downloadiced-e400f972c1fe6fa4f70f8cfe559ded680e6cf740.tar.gz
iced-e400f972c1fe6fa4f70f8cfe559ded680e6cf740.tar.bz2
iced-e400f972c1fe6fa4f70f8cfe559ded680e6cf740.zip
Introduce `window::Id` to `Event` subscriptions
And remove `window::Id` from `Event` altogether.
Diffstat (limited to 'runtime')
-rw-r--r--runtime/src/window.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/src/window.rs b/runtime/src/window.rs
index e32465d3..b68c9a71 100644
--- a/runtime/src/window.rs
+++ b/runtime/src/window.rs
@@ -28,8 +28,8 @@ use raw_window_handle::WindowHandle;
/// In any case, this [`Subscription`] is useful to smoothly draw application-driven
/// animations without missing any frames.
pub fn frames() -> Subscription<Instant> {
- event::listen_raw(|event, _status| match event {
- crate::core::Event::Window(_, Event::RedrawRequested(at)) => Some(at),
+ event::listen_raw(|event, _status, _window| match event {
+ crate::core::Event::Window(Event::RedrawRequested(at)) => Some(at),
_ => None,
})
}