diff --git a/komorebi/src/lib.rs b/komorebi/src/lib.rs index 503180f0..51820812 100644 --- a/komorebi/src/lib.rs +++ b/komorebi/src/lib.rs @@ -306,7 +306,7 @@ pub fn current_virtual_desktop() -> Option> { current } -#[derive(Debug, Serialize, Deserialize)] +#[derive(Clone, Debug, Serialize, Deserialize)] #[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[serde(untagged)] pub enum NotificationEvent { @@ -323,7 +323,7 @@ pub enum VirtualDesktopNotification { LeftAssociatedVirtualDesktop, } -#[derive(Debug, Serialize, Deserialize)] +#[derive(Clone, Debug, Serialize, Deserialize)] #[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct Notification { pub event: NotificationEvent, diff --git a/komorebi/src/window_manager.rs b/komorebi/src/window_manager.rs index 751ef4a0..8218eee4 100644 --- a/komorebi/src/window_manager.rs +++ b/komorebi/src/window_manager.rs @@ -126,7 +126,7 @@ pub struct WindowManager { } #[allow(clippy::struct_excessive_bools)] -#[derive(Debug, Serialize, Deserialize)] +#[derive(Clone, Debug, Serialize, Deserialize)] #[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct State { pub monitors: Ring,