mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-15 05:12:28 +01:00
refactor(core): Workspace::hide_spot and hide_spot_on_display as methods
Convenience for the callers that have a workspace and no platform type to name (the window manager functions, which are the same text on KDE and macOS): the same as P::hide_spot(self) and P::hide_spot_on_display(self). Nothing calls them yet in the KDE and Windows daemons; no behaviour change. Verified: native cargo test -p komorebi-core passes; fast-check all trees PASS.
This commit is contained in:
1 parent
176dc0a8ba
commit
401ce9112a
1 file changed
+12
@@ -473,6 +473,18 @@ pub fn resolve_threshold_match(
|
||||
}
|
||||
|
||||
impl<P: WorkspacePlatform> Workspace<P> {
|
||||
/// Where the windows of this workspace are hidden ([`WorkspacePlatform::hide_spot`]), for the
|
||||
/// calls that hide or stack a window
|
||||
pub fn hide_spot(&self) -> PlatformHideSpot<P> {
|
||||
P::hide_spot(self)
|
||||
}
|
||||
|
||||
/// Where the containers of this workspace are hidden when the whole workspace is
|
||||
/// ([`WorkspacePlatform::hide_spot_on_display`])
|
||||
pub fn hide_spot_on_display(&self) -> PlatformHideSpot<P> {
|
||||
P::hide_spot_on_display(self)
|
||||
}
|
||||
|
||||
/// The containers of the workspace.
|
||||
pub const fn containers(&self) -> &std::collections::VecDeque<Container<P::Window>> {
|
||||
self.containers.elements()
|
||||
|
||||
Reference in new issue
Block a user