Move chain to upper chain in loop

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

View File

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