summaryrefslogtreecommitdiffstats
path: root/winit
diff options
context:
space:
mode:
authorLibravatar JL710 <76447362+JL710@users.noreply.github.com>2024-10-11 12:16:52 +0200
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2025-01-06 23:20:51 +0100
commitf5f075e5cdff84a58c181c498653b7ab66c9531a (patch)
tree2c9a983bb5f6d50f63ac13a9719700af7e59bee6 /winit
parent8ebbfa9767bcb8f8efd43cc1c7d40e9c61f6c461 (diff)
downloadiced-f5f075e5cdff84a58c181c498653b7ab66c9531a.tar.gz
iced-f5f075e5cdff84a58c181c498653b7ab66c9531a.tar.bz2
iced-f5f075e5cdff84a58c181c498653b7ab66c9531a.zip
window resizable task
Diffstat (limited to 'winit')
-rw-r--r--winit/src/program.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/winit/src/program.rs b/winit/src/program.rs
index 58fec9df..416c8e70 100644
--- a/winit/src/program.rs
+++ b/winit/src/program.rs
@@ -1316,6 +1316,11 @@ fn run_action<P, C>(
window.raw.set_title(&title);
}
}
+ window::Action::SetResizable(id, resizable) => {
+ if let Some(window) = window_manager.get_mut(id) {
+ window.raw.set_resizable(resizable);
+ }
+ }
window::Action::GetSize(id, channel) => {
if let Some(window) = window_manager.get_mut(id) {
let size = window