aboutsummaryrefslogtreecommitdiff
path: root/src/layout/tile.rs
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2025-01-18 17:42:11 +0300
committerIvan Molodetskikh <yalterz@gmail.com>2025-01-18 17:43:58 +0300
commit818248457210f5101459ea7d7066d12c456c8a97 (patch)
tree942ad497f54a0b59b55938ed1a9b95acb405275b /src/layout/tile.rs
parent0584dd2f1e82417bdabcc0d8cb20fddc2e8cc5e7 (diff)
downloadniri-818248457210f5101459ea7d7066d12c456c8a97.tar.gz
niri-818248457210f5101459ea7d7066d12c456c8a97.tar.bz2
niri-818248457210f5101459ea7d7066d12c456c8a97.zip
Remove Vec from Shadow::render()
Diffstat (limited to 'src/layout/tile.rs')
-rw-r--r--src/layout/tile.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/layout/tile.rs b/src/layout/tile.rs
index a9fd8e13..529ffc0f 100644
--- a/src/layout/tile.rs
+++ b/src/layout/tile.rs
@@ -710,14 +710,14 @@ impl<W: LayoutElement> Tile<W> {
.unwrap_or_else(|| !self.window.has_ssd())
}
- fn render_inner<R: NiriRenderer>(
- &self,
+ fn render_inner<'a, R: NiriRenderer + 'a>(
+ &'a self,
renderer: &mut R,
location: Point<f64, Logical>,
scale: Scale<f64>,
focus_ring: bool,
target: RenderTarget,
- ) -> impl Iterator<Item = TileRenderElement<R>> {
+ ) -> impl Iterator<Item = TileRenderElement<R>> + 'a {
let _span = tracy_client::span!("Tile::render_inner");
let alpha = if self.is_fullscreen {
@@ -926,14 +926,14 @@ impl<W: LayoutElement> Tile<W> {
rv.chain(self.shadow.render(renderer, location).map(Into::into))
}
- pub fn render<R: NiriRenderer>(
- &self,
+ pub fn render<'a, R: NiriRenderer + 'a>(
+ &'a self,
renderer: &mut R,
location: Point<f64, Logical>,
scale: Scale<f64>,
focus_ring: bool,
target: RenderTarget,
- ) -> impl Iterator<Item = TileRenderElement<R>> {
+ ) -> impl Iterator<Item = TileRenderElement<R>> + 'a {
let _span = tracy_client::span!("Tile::render");
let mut open_anim_elem = None;