cosmic-comp/src/shell/grabs
Ian Douglas Scott 94fecec9cb Add a SplitRenderElements type, with useful methods
`(w_elements, p_elements)` tuples are used in a bunch of places. A
struct with named fields is generally an improvement just due to the
fact the order is non-obvious.

But we can also add methods. In particular,
`extend_from_workspace_elements` abstracts out some of the more
redundant code in `workspace_elements`.

It would be nice to avoid allocation everywhere, but iterators would
complicate lifetimes, run into issues with needing multiple mutable
borrows to things like the `Renderer`, and be awkward in certain
functions without generator syntax. In any case, cosmic-comp already
relies on allocating vectors here.

If this abstraction is commonly useful in compositors, perhaps it could
be moved to Smithay.
2024-07-15 17:12:05 +02:00
..
menu shell: Populate focus_stack when unstacking 2024-07-03 21:04:28 +02:00
mod.rs feat: runtime configurable keybindings 2024-07-01 15:20:23 +02:00
moving.rs Add a SplitRenderElements type, with useful methods 2024-07-15 17:12:05 +02:00