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

@ -33,6 +33,16 @@ pub enum Action {
Subsurface(subsurface::Action),
/// Keyboard inhibit shortcuts
InhibitShortcuts(bool),
/// Rounded corners in logical space
RoundedCorners(iced_core::window::Id, Option<CornerRadius>),
}
#[derive(Debug, Clone, Copy, PartialEq, Default)]
pub struct CornerRadius {
pub top_left: u32,
pub top_right: u32,
pub bottom_left: u32,
pub bottom_right: u32,
}
impl Debug for Action {
@ -57,6 +67,9 @@ impl Debug for Action {
Action::InhibitShortcuts(v) => {
f.debug_tuple("InhibitShortcuts").field(v).finish()
}
Action::RoundedCorners(id, v) => {
f.debug_tuple("RoundedCorners").field(id).field(v).finish()
}
}
}
}