cleanup and update iced

This commit is contained in:
Ashley Wulber 2026-05-21 14:12:08 -04:00 committed by Ashley Wulber
parent 033dfe6c57
commit 43de9e3e77
3 changed files with 3 additions and 2 deletions

View file

@ -22,4 +22,5 @@ features = [
"surface-message", "surface-message",
"multi-window", "multi-window",
"wgpu", "wgpu",
"wayland",
] ]

View file

@ -1561,7 +1561,7 @@ impl<App: Application> Cosmic<App> {
let rounded = !self.app.core().window.sharp_corners let rounded = !self.app.core().window.sharp_corners
&& self.app.core().sync_window_border_radii_to_theme(); && self.app.core().sync_window_border_radii_to_theme();
if let Some(cur_rad) = if let Some(cur_rad) =
corners(id_wrapper, rounded, &*t, self.app.core().auto_corner_radius) corners(id_wrapper, rounded, &t, self.app.core().auto_corner_radius)
{ {
cmds.push(corner_radius::corner_radius(id, Some(cur_rad)).discard()); cmds.push(corner_radius::corner_radius(id, Some(cur_rad)).discard());
} }

View file

@ -164,7 +164,7 @@ pub fn app_popup<App: Application>(
/// Used to create a subsurface message from within a widget. /// Used to create a subsurface message from within a widget.
#[cfg(all(feature = "wayland", target_os = "linux", feature = "winit"))] #[cfg(all(feature = "wayland", target_os = "linux", feature = "winit"))]
#[must_use] #[must_use]
pub fn simple_subsurface<Message: 'static, V>( pub fn simple_subsurface<Message: 'static>(
settings: impl Fn() -> iced_runtime::platform_specific::wayland::subsurface::SctkSubsurfaceSettings settings: impl Fn() -> iced_runtime::platform_specific::wayland::subsurface::SctkSubsurfaceSettings
+ Send + Send
+ Sync + Sync