From a05076f491c37d95a09348525035a50329d1a5ff Mon Sep 17 00:00:00 2001 From: LGUG2Z Date: Sat, 31 Oct 2026 12:32:31 -0700 Subject: [PATCH] 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. --- komorebi-for-kde/komorebi/src/container.rs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/komorebi-for-kde/komorebi/src/container.rs b/komorebi-for-kde/komorebi/src/container.rs index fb576066..dc91284f 100644 --- a/komorebi-for-kde/komorebi/src/container.rs +++ b/komorebi-for-kde/komorebi/src/container.rs @@ -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; @@ -41,6 +42,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) + } +} + #[cfg(test)] mod tests { use super::*;