mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-24 02:01:18 +07:00
Fix blocked-out surfaces on scaled outputs
This commit is contained in:
+4
-5
@@ -732,18 +732,17 @@ impl<W: LayoutElement> Tile<W> {
|
|||||||
// user-provided radius, so our blocked-out rendering should match that
|
// user-provided radius, so our blocked-out rendering should match that
|
||||||
// radius.
|
// radius.
|
||||||
if radius != CornerRadius::default() && has_border_shader {
|
if radius != CornerRadius::default() && has_border_shader {
|
||||||
let elem_geo = elem.geometry(Scale::from(1.)).to_logical(1);
|
|
||||||
return BorderRenderElement::new(
|
return BorderRenderElement::new(
|
||||||
elem_geo.size,
|
geo.size,
|
||||||
Rectangle::from_loc_and_size((0, 0), elem_geo.size),
|
Rectangle::from_loc_and_size((0, 0), geo.size),
|
||||||
elem.color(),
|
elem.color(),
|
||||||
elem.color(),
|
elem.color(),
|
||||||
0.,
|
0.,
|
||||||
Rectangle::from_loc_and_size(geo.loc - elem_geo.loc, geo.size),
|
Rectangle::from_loc_and_size((0, 0), geo.size),
|
||||||
0.,
|
0.,
|
||||||
radius,
|
radius,
|
||||||
)
|
)
|
||||||
.with_location(elem_geo.loc)
|
.with_location(geo.loc)
|
||||||
.into();
|
.into();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user