mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-16 05:41:16 +01:00
Four more functions of the workspace move into komorebi-core, written from the KDE text with three hooks that have defaults: primary_container_idx (the layout's primary position; 0 for the default layouts, Windows overrides it for custom layouts), unmaximize_window (KDE asks the compositor, a no-op on Windows, as new_floating_window does there today) and before_hide_containers (the KDE scrolling prelude of hide, returning the resize adjustments to put back). effective_layout_options needs no hook: a layout that is not one of the defaults has no default options, which is the Windows custom-layout arm and an unreachable pattern on KDE. Tests with the stub platform cover promote, new_floating_window and hide. The daemons still have their own copies; the next revisions make them use these. Verified: cargo test -p komorebi-core --features schemars (native): 23 passed, 0 failed. Not run: the daemons.