fix(wayland): window resize forces corner radius update

This commit is contained in:
Ashley Wulber 2025-09-26 15:38:59 -04:00
parent bc85d82426
commit 7993a572b0
No known key found for this signature in database
GPG key ID: 5216D4F46A90A820
3 changed files with 38 additions and 14 deletions

View file

@ -123,6 +123,14 @@ impl SctkEventLoop {
log::warn!("{err:?}");
}
}
crate::platform_specific::Action::ResizeWindow(id) => {
if let Some((_, v)) = state.windows.iter()
.find(|w| w.id == id)
.map(|w| w.corner_radius.as_ref())
.unwrap_or_default() {
_ = state.handle_action(iced_runtime::platform_specific::wayland::Action::RoundedCorners(id, *v));
}
}
crate::platform_specific::Action::TrackWindow(
window,
id,