diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-05-03 21:49:47 +0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-05-03 21:49:47 +0400 |
| commit | 74996a2416712f6b6e00c4b216627feda3ae518d (patch) | |
| tree | fc7c0271f1aeec99dac8299706d5e298c71adc3b /src/layout | |
| parent | 8ab50f9d1ca5795f4eef84ad423dc0d63d990b98 (diff) | |
| download | niri-74996a2416712f6b6e00c4b216627feda3ae518d.tar.gz niri-74996a2416712f6b6e00c4b216627feda3ae518d.tar.bz2 niri-74996a2416712f6b6e00c4b216627feda3ae518d.zip | |
Make BorderRenderElement scale-agnostic
Diffstat (limited to 'src/layout')
| -rw-r--r-- | src/layout/focus_ring.rs | 2 | ||||
| -rw-r--r-- | src/layout/tile.rs | 1 |
2 files changed, 0 insertions, 3 deletions
diff --git a/src/layout/focus_ring.rs b/src/layout/focus_ring.rs index 18b5d5ca..757b2085 100644 --- a/src/layout/focus_ring.rs +++ b/src/layout/focus_ring.rs @@ -201,7 +201,6 @@ impl FocusRing { GradientRelativeTo::WorkspaceView => view_rect, }; border.update( - scale, Rectangle::from_loc_and_size(location, size), gradient_area, gradient.from.into(), @@ -214,7 +213,6 @@ impl FocusRing { Some(border.clone().into()) } else if self.radius != CornerRadius::default() { border.update( - scale, Rectangle::from_loc_and_size(location, size), full_rect, color.into(), diff --git a/src/layout/tile.rs b/src/layout/tile.rs index 99b2bc57..d5237ae7 100644 --- a/src/layout/tile.rs +++ b/src/layout/tile.rs @@ -721,7 +721,6 @@ impl<W: LayoutElement> Tile<W> { // radius. if radius != CornerRadius::default() && has_border_shader { return BorderRenderElement::new( - scale, elem.geometry(Scale::from(1.)).to_logical(1), Rectangle::from_loc_and_size(Point::from((0, 0)), geo.size), elem.color(), |
