cosmic-comp/src/shell/layout
Ian Douglas Scott de7c78accd layout/tiling: Make cleanup_drag push tree only if something changes
Since `copy_clone()` preserved IDs, `traverse_pre_order_ids()` can be
called on the old tree, without collecting into a `Vec`.

Then we can also `copy_clone()` only if there's actually a change, and
also only call `push_tree()` in that case.

(Once the `LazyCell::get()` stabilization is released, we could use
that here, but `Option::get_or_insert_with()` may be more readable
anyway.)

With this, `cleanup_drag()` should be pretty low-cost, so we shouldn't
have to worry about whether or not it's redundant.
2026-02-09 17:07:03 -08:00
..
floating element: Clip to tile size if available instead of element geometry 2026-01-13 19:12:22 +01:00
tiling layout/tiling: Make cleanup_drag push tree only if something changes 2026-02-09 17:07:03 -08:00
mod.rs refactor(shell/element): refactor how decorations height is accessed 2024-12-28 15:32:03 +01:00