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<String> here and
Option<String> 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.
This commit is contained in:
LGUG2Z committed 2026-10-31 11:12:02 -07:00
1 parent 292a9ed567
commit f49a335256
1 file changed
+1 -1
+1 -1
View File
@@ -14,7 +14,7 @@ pub struct Container {
pub id: String,
#[serde(default)]
pub locked: bool,
windows: Ring<Window>,
pub windows: Ring<Window>,
}
impl_ring_elements!(Container, Window);