mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-15 13:22:19 +01:00
WorkspacePlatform::begin_pass(workspace) is called once per placement pass, after the layout is computed and before the containers are placed, and what it returns is handed to adjust_layout and place_container as Placement::pass (Placement now carries that borrow). A platform that has something to read once for the whole pass takes it here, so that two containers of a pass cannot see two different values. The default returns None. A test with the stub platform pins the order (once per pass, before the placements) and that the hooks see the answer. For reviewer finding F3 (S/review/core.md): the Windows title-bar tables were read once per pass and the shared update read them once per container; the Windows revision that follows uses this hook. Verified: cargo test -p komorebi-core --features schemars (native): 30 passed, 0 failed. Not run: the daemons (the next revision builds them).