feat(wayland): configure and commit for toplevel]

This commit is contained in:
Nova
2022-12-25 16:01:23 -05:00
parent 0b6eb147c5
commit 3552166207
9 changed files with 786 additions and 422 deletions

View File

@@ -175,7 +175,7 @@ pub trait ItemSpecialization {
pub enum ItemType {
Environment(EnvironmentItem),
#[cfg(feature = "wayland")]
Panel(PanelItem),
Panel(Arc<PanelItem>),
}
impl Deref for ItemType {
type Target = dyn ItemSpecialization;
@@ -184,7 +184,7 @@ impl Deref for ItemType {
match self {
ItemType::Environment(item) => item,
#[cfg(feature = "wayland")]
ItemType::Panel(item) => item,
ItemType::Panel(item) => &**item,
}
}
}