mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-17 22:33:12 +01:00
Step 11(iii) prerequisite. The macOS Window holds retained Accessibility references and cannot be Copy, so the bound of ContainerWindow is Clone. KDE and Windows windows are still Copy; they satisfy it unchanged. The seven places in komorebi-core/src/workspace.rs that copied a window out of a borrowed Option (if let Some(window) = self.maximized_window) borrow it instead (&self.maximized_window), and two places clone where the old text used the value twice (new_maximized_window, new_maximized_window's unmaximize hook). No behaviour change on KDE or Windows: a clone of a Copy type is the copy. Verified: native cargo test -p komorebi-core, fast-check: Windows clippy --all-targets -D warnings PASS, KDE check + lib tests PASS (291 passed), macOS fake-CC type-check PASS. Not run: Windows e2e (needed only if you want a second look: no Windows window type changed).