mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-12-06 06:56:31 +01:00
Plan step 10, S3. The two default paddings, the aspect ratio of a window toggled to floating (centre with resize), layout_defaults and display_index_preferences are no longer statics: their writers (apply_globals through SharedDelta::apply, the DisplayIndexPreference command) and all readers use settings() together. The semantics are the statics': a missing padding or display_index_preferences key keeps the value, a missing layout_defaults clears it, a missing aspect ratio is Standard (not the initial Widescreen), and the command inserts one entry. Readers get an owned copy from one snapshot (accessors in settings.rs). BEHAVIOUR only in this: apply_globals used to store these keys one at a time and now publishes the group in one update, so a thread can no longer see a half-applied reload of them. Value semantics are pinned by crates/komorebi-settings tests/reload.rs and shared.rs (reload merges, a few keys reset, a load never touches groups it does not name). KDE: window.rs, desktop.rs, monitor.rs, monitor_reconciliator.rs, state.rs, static_config.rs, process_command.rs, lib.rs and tests/config.rs (the test harness resets the paddings through settings()). Verified: KDE cargo test --locked -p komorebi-linux --lib --tests (lite env, own target dir): 63 test binaries, 631 passed, 0 failed, including tests/config.rs that loads configurations over a fake desktop. KDE VM suites not run (gate: config reload and workspace padding suites).