aboutsummaryrefslogtreecommitdiff
path: root/src/layout/tile.rs
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2024-05-03 20:20:36 +0400
committerIvan Molodetskikh <yalterz@gmail.com>2024-05-03 20:20:36 +0400
commit5c32031111223cdfb7ad5e9c2766204445ac6492 (patch)
tree96b9f4b1583911df86a85c5bf45752b5ddf0620e /src/layout/tile.rs
parent85680a57dac965973644e9e96159716c0608bb57 (diff)
downloadniri-5c32031111223cdfb7ad5e9c2766204445ac6492.tar.gz
niri-5c32031111223cdfb7ad5e9c2766204445ac6492.tar.bz2
niri-5c32031111223cdfb7ad5e9c2766204445ac6492.zip
shader_element: Make shader optional
The element is long-lived, but the shader itself isn't.
Diffstat (limited to 'src/layout/tile.rs')
-rw-r--r--src/layout/tile.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/layout/tile.rs b/src/layout/tile.rs
index a5ba6c6c..b47afc76 100644
--- a/src/layout/tile.rs
+++ b/src/layout/tile.rs
@@ -718,7 +718,7 @@ impl<W: LayoutElement> Tile<W> {
if radius != CornerRadius::default() {
if let Some(shader) = border_shader.clone() {
return BorderRenderElement::new(
- shader,
+ &shader,
scale,
elem.geometry(Scale::from(1.)).to_logical(1),
Rectangle::from_loc_and_size(Point::from((0, 0)), geo.size),