fix(wayland): window resize forces corner radius update
This commit is contained in:
parent
bc85d82426
commit
7993a572b0
3 changed files with 38 additions and 14 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue