aboutsummaryrefslogtreecommitdiff
path: root/src/layout
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2024-02-06 19:52:10 +0400
committerIvan Molodetskikh <yalterz@gmail.com>2024-02-06 19:52:10 +0400
commitd4929b8e18fb500aac515e98ab06afdf433ace23 (patch)
treed120dea4511aba56ca890a2557c29f4423566c36 /src/layout
parent93c547f7499105d69f2bef41699b76937a2559c8 (diff)
downloadniri-d4929b8e18fb500aac515e98ab06afdf433ace23.tar.gz
niri-d4929b8e18fb500aac515e98ab06afdf433ace23.tar.bz2
niri-d4929b8e18fb500aac515e98ab06afdf433ace23.zip
Inline variable
Diffstat (limited to 'src/layout')
-rw-r--r--src/layout/tile.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/layout/tile.rs b/src/layout/tile.rs
index a691e2e0..80797130 100644
--- a/src/layout/tile.rs
+++ b/src/layout/tile.rs
@@ -258,10 +258,9 @@ impl<W: LayoutElement> Tile<W> {
scale: Scale<f64>,
focus_ring: bool,
) -> impl Iterator<Item = TileRenderElement<R>> {
- let window_pos = location + self.window_loc();
let rv = self
.window
- .render(renderer, window_pos, scale)
+ .render(renderer, location + self.window_loc(), scale)
.into_iter()
.map(Into::into);