mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-18 22:58:34 +01:00
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:
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::*;
|
||||
|
||||
Reference in new issue
Block a user