feat(wayland): corner-radius protocol support

This commit is contained in:
Ashley Wulber 2025-09-24 15:48:18 -04:00
parent 54a69a0523
commit e73bbddbca
No known key found for this signature in database
GPG key ID: 5216D4F46A90A820
10 changed files with 252 additions and 62 deletions

View file

@ -0,0 +1,20 @@
use iced_futures::core::{border::Radius, window};
use iced_runtime::{
self,
platform_specific::{
self,
wayland::{self, CornerRadius},
},
task, Action, Task,
};
pub fn corner_radius(
id: window::Id,
corners: Option<CornerRadius>,
) -> Task<()> {
task::oneshot(|_| {
Action::PlatformSpecific(platform_specific::Action::Wayland(
wayland::Action::RoundedCorners(id, corners),
))
})
}

View file

@ -1,6 +1,7 @@
//! Interact with the wayland objects of your application.
pub mod activation;
pub mod corner_radius;
pub mod keyboard_shortcuts_inhibit;
pub mod layer_surface;
pub mod overlap_notify;