From f49a335256d9c3addea54175821cf6aeffc1d027 Mon Sep 17 00:00:00 2001 From: LGUG2Z Date: Sat, 31 Oct 2026 11:11:47 -0700 Subject: [PATCH] refactor(windows): Container.windows is pub, as in KDE KDE's Container and the Windows one already have the same method set and signatures (add_window(Window), hide, restore and load_focused_window return nothing; the earlier backend() switches made hide/restore the same calls). The last field-level difference was the visibility of windows: pub on KDE, private here. Make it pub; the Ring accessors (windows(), windows_mut()) stay. Not converged, on purpose: Window::exe() is eyre::Result here and Option on KDE; it has 33 callers that use ? or Ok(..) patterns, so changing it is its own revision (not mechanical in the container alone); hwnd_from_exe (2 callers in workspace.rs) and the hwnd/WindowId parameter types wait for the shared core. Not a behaviour change. Verified: Windows clippy -D warnings via tools/fast-check PASS. --- komorebi/src/container.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/komorebi/src/container.rs b/komorebi/src/container.rs index ebb9707a..baa8f72a 100644 --- a/komorebi/src/container.rs +++ b/komorebi/src/container.rs @@ -14,7 +14,7 @@ pub struct Container { pub id: String, #[serde(default)] pub locked: bool, - windows: Ring, + pub windows: Ring, } impl_ring_elements!(Container, Window);