window task for setting resize increments

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

View file

@ -1311,6 +1311,16 @@ fn run_action<P, C>(
}));
}
}
window::Action::SetResizeIncrements(id, increments) => {
if let Some(window) = window_manager.get_mut(id) {
window.raw.set_resize_increments(increments.map(|x| {
winit::dpi::LogicalSize {
width: x.width,
height: x.height,
}
}));
}
}
window::Action::ChangeTitle(id, title) => {
if let Some(window) = window_manager.get_mut(id) {
window.raw.set_title(&title);