mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-18 22:58:34 +01:00
The shared half of update (core-model.md section 12) as Workspace::update_shared: begin_update (Flow::Skip, or a guard held until the end), the empty containers dropped and containers_pruned, the work area, offsets and paddings, the layout and behaviour rules, then the tile branch: place_monocle, maximize_in_layout, adopt_widths_before_layout and adopt_actual_widths for a scrolling workspace, the layout (calculate, or scrolling_layouts with the containers that rest hidden), adjust_layout and place_container per container, latest_layout, and end_update, which can ask for one more pass (Pass::Again), and the resize_dimensions resize. The text is KDE's with the Windows pass loop in it; the hooks are the parts the two daemons do differently. It is not called update so that a daemon keeps its own update (macOS's, which has another shape, stays as it is); every hook has a default so that MacosPlatform compiles unchanged, and the defaults of the ones a daemon must provide fail. Placement carries what the hooks of a pass need (the work areas, the paddings, the border, whether the workspace scrolls, whether it has resize adjustments, whether a window is maximized). Flow and Pass are the answers of begin_update and end_update. A test with a stub platform pins the call order and the second pass. Verified: cargo test -p komorebi-core --features schemars (native): 29 passed, 0 failed; Windows clippy --locked --all-targets -D warnings: PASS (compiles the crate). Not run: the daemons (nothing calls update_shared yet).