Move chain to upper chain in render loop

Co-authored-by: Victoria Brekenfeld <4404502+Drakulix@users.noreply.github.com>
This commit is contained in:
Mateusz 2022-01-19 16:49:03 +01:00 committed by GitHub
parent b9ecc3c2d4
commit d7dfe2e3b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 7 deletions

View File

@ -622,14 +622,14 @@ impl Space {
layer_map layer_map
.layers_on(WlrLayer::Background) .layers_on(WlrLayer::Background)
.map(|l| l as &SpaceElem<R>) .map(|l| l as &SpaceElem<R>)
)
.chain( .chain(
custom_elements custom_elements
.iter() .iter()
.filter(|c| c.layer() == RenderLayer::AboveBackground) .filter(|c| c.layer() == RenderLayer::AboveBackground)
.map(|c| c as &SpaceElem<R>), .map(|c| c as &SpaceElem<R>),
) )
.chain(layer_map.layers_on(WlrLayer::Bottom).map(|l| l as &SpaceElem<R>)), .chain(layer_map.layers_on(WlrLayer::Bottom).map(|l| l as &SpaceElem<R>))
)
.chain( .chain(
custom_elements custom_elements
.iter() .iter()