summaryrefslogtreecommitdiffstats
path: root/winit
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-07-30 22:26:55 +0200
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-07-30 22:26:55 +0200
commitfd593f8fb0c8476463f9c04ae2bcc96784b8c530 (patch)
tree8f9413a9b642aaaf6de091694d429def07966892 /winit
parent8f335757192701c4d276016ec68da6aa34b6c568 (diff)
downloadiced-fd593f8fb0c8476463f9c04ae2bcc96784b8c530.tar.gz
iced-fd593f8fb0c8476463f9c04ae2bcc96784b8c530.tar.bz2
iced-fd593f8fb0c8476463f9c04ae2bcc96784b8c530.zip
Return `window::Id` in `window::open`
Diffstat (limited to 'winit')
-rw-r--r--winit/src/program.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/winit/src/program.rs b/winit/src/program.rs
index 286fff77..7e7864b3 100644
--- a/winit/src/program.rs
+++ b/winit/src/program.rs
@@ -207,8 +207,9 @@ where
let task = if let Some(window_settings) = window_settings {
let mut task = Some(task);
- runtime::window::open(window_settings)
- .then(move |_| task.take().unwrap_or(Task::none()))
+ let (_id, open) = runtime::window::open(window_settings);
+
+ open.then(move |_| task.take().unwrap_or(Task::none()))
} else {
task
};