diff --git a/komorebi/src/container.rs b/komorebi/src/container.rs index 92dc5341..0dc51466 100644 --- a/komorebi/src/container.rs +++ b/komorebi/src/container.rs @@ -7,6 +7,7 @@ use crate::window::Window; use crate::windows_backend::backend; use komorebi_backend::WindowId; use komorebi_core::ContainerWindow; +use komorebi_core::WorkspaceWindow; /// The windows that share one tile of a workspace's layout pub type Container = komorebi_core::Container; @@ -39,6 +40,24 @@ impl ContainerWindow for Window { } } +impl WorkspaceWindow for Window { + fn title(&self) -> Option { + Window::title(*self) + } + + fn exe(&self) -> Option { + Window::exe(*self) + } + + fn class(&self) -> Option { + Window::class(*self) + } + + fn path(&self) -> Option { + Window::path(*self) + } +} + /// What only the Windows container has pub trait ContainerExt { /// The handle of the first window of the executable `exe` in this container