window resizable task

This commit is contained in:
JL710 2024-10-11 12:16:52 +02:00 committed by Héctor Ramón Jiménez
parent 8ebbfa9767
commit f5f075e5cd
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
2 changed files with 13 additions and 0 deletions

View file

@ -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