render: Make blur_strength configurable

This commit is contained in:
Victoria Brekenfeld 2026-03-10 17:16:48 +01:00 committed by Victoria Brekenfeld
parent 1c5ef576f4
commit de8b47839c
11 changed files with 119 additions and 27 deletions

View file

@ -668,6 +668,7 @@ impl CosmicStack {
scale,
alpha,
scanout_node,
9, // TODO
&mut |elem| push(elem.into()),
)
})
@ -825,6 +826,7 @@ impl CosmicStack {
scanout_node,
radii.is_some(),
radii.unwrap_or([0; 4]),
9, // as TODO
&mut |elem| push_above(elem.into()),
Some(&mut |elem| push_below(elem.into())),
);

View file

@ -866,6 +866,7 @@ impl CosmicSurface {
scale: Scale<f64>,
alpha: f32,
scanout_node: Option<DrmNode>,
blur_strength: usize,
push: &mut dyn FnMut(SurfaceRenderElement<R>),
) where
R: Renderer + ImportAll + AsGlowRenderer,
@ -889,6 +890,7 @@ impl CosmicSurface {
alpha,
false,
[0; 4],
blur_strength,
scanout_kind_eval(None, scanout_node),
push,
None,
@ -909,6 +911,7 @@ impl CosmicSurface {
scanout_node: Option<DrmNode>,
should_clip: bool,
radii: [u8; 4],
blur_strength: usize,
push_above: &mut dyn FnMut(SurfaceRenderElement<R>),
push_below: Option<&mut dyn FnMut(SurfaceRenderElement<R>)>,
) where
@ -931,6 +934,7 @@ impl CosmicSurface {
alpha,
should_clip,
radii,
blur_strength,
scanout_kind_eval(scanout_override, scanout_node),
push_above,
push_below,
@ -950,6 +954,7 @@ impl CosmicSurface {
alpha,
should_clip,
radii,
blur_strength,
scanout_kind_eval(scanout_override, scanout_node),
push_above,
push_below,

View file

@ -375,6 +375,7 @@ impl CosmicWindow {
scale,
alpha,
scanout_node,
9, // TODO
&mut |elem| push(elem.into()),
)
})
@ -556,6 +557,7 @@ impl CosmicWindow {
scanout_node,
clip,
radii,
9, // TODO
&mut |elem| push_above(elem.into()),
Some(&mut |elem| push_below(elem.into())),
)

View file

@ -5408,6 +5408,8 @@ fn render_new_tree_windows<R>(
scanout_node,
false,
[0, 0, 0, 0],
// TODO
0,
&mut |elem| {
swap_elements.push(CosmicMappedRenderElement::GrabbedWindow(
RescaleRenderElement::from_element(

View file

@ -1717,6 +1717,7 @@ impl Workspace {
scanout_node,
false,
[0, 0, 0, 0],
0,
&mut fullscreen_push,
None,
);
@ -1905,6 +1906,7 @@ impl Workspace {
output_scale.into(),
alpha,
scanout_node,
0,
&mut |elem| push(WorkspaceRenderElement::FullscreenPopup(elem.into())),
);
}