refactor(kde): Window implements WorkspaceWindow

The four lookups of komorebi-core's WorkspaceWindow forward to Window's
own title, exe, class and path. Nothing calls them through the trait yet.
No behaviour change.

Verified: KDE cargo test -p komorebi --lib --tests (native, lite env):
630 passed, 0 failed. Not run: VM suites.
This commit is contained in:
LGUG2Z committed 2026-10-31 12:34:57 -07:00
1 parent b2ba3847cb
commit a05076f491
1 file changed
+19
@@ -9,6 +9,7 @@
use crate::window::Window;
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<Window>;
@@ -41,6 +42,24 @@ impl ContainerWindow for Window {
}
}
impl WorkspaceWindow for Window {
fn title(&self) -> Option<String> {
Window::title(*self)
}
fn exe(&self) -> Option<String> {
Window::exe(*self)
}
fn class(&self) -> Option<String> {
Window::class(*self)
}
fn path(&self) -> Option<String> {
Window::path(*self)
}
}
#[cfg(test)]
mod tests {
use super::*;