diff --git a/examples/application/Cargo.toml b/examples/application/Cargo.toml index 7a6083e0..1fb2949b 100644 --- a/examples/application/Cargo.toml +++ b/examples/application/Cargo.toml @@ -22,4 +22,5 @@ features = [ "surface-message", "multi-window", "wgpu", + "wayland", ] diff --git a/src/app/cosmic.rs b/src/app/cosmic.rs index 13f5438b..66a3e7a6 100644 --- a/src/app/cosmic.rs +++ b/src/app/cosmic.rs @@ -1561,7 +1561,7 @@ impl Cosmic { let rounded = !self.app.core().window.sharp_corners && self.app.core().sync_window_border_radii_to_theme(); 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()); } diff --git a/src/surface/action.rs b/src/surface/action.rs index fc38b31d..493c9ad0 100644 --- a/src/surface/action.rs +++ b/src/surface/action.rs @@ -164,7 +164,7 @@ pub fn app_popup( /// Used to create a subsurface message from within a widget. #[cfg(all(feature = "wayland", target_os = "linux", feature = "winit"))] #[must_use] -pub fn simple_subsurface( +pub fn simple_subsurface( settings: impl Fn() -> iced_runtime::platform_specific::wayland::subsurface::SctkSubsurfaceSettings + Send + Sync