fix: use configured blur strength for lock surface and its subsurfaces

This commit is contained in:
Ashley Wulber 2026-05-26 18:24:33 -04:00 committed by Victoria Brekenfeld
parent e0b6784eb5
commit f6d3dafda7

View file

@ -826,7 +826,7 @@ where
}); });
} }
Stage::SessionLock(lock_surface) => { Stage::SessionLock(lock_surface) => {
session_lock_elements(renderer, output, lock_surface, &mut |elem| { session_lock_elements(renderer, output, lock_surface, blur_strength, &mut |elem| {
elements.extend(crop_to_output(elem.into()).map(Into::into)) elements.extend(crop_to_output(elem.into()).map(Into::into))
}) })
} }
@ -1060,6 +1060,7 @@ fn session_lock_elements<R>(
renderer: &mut R, renderer: &mut R,
output: &Output, output: &Output,
lock_surface: Option<&LockSurface>, lock_surface: Option<&LockSurface>,
blur_strength: usize,
push: &mut dyn FnMut(SurfaceRenderElement<R>), push: &mut dyn FnMut(SurfaceRenderElement<R>),
) where ) where
R: AsGlowRenderer, R: AsGlowRenderer,
@ -1077,7 +1078,7 @@ fn session_lock_elements<R>(
false, false,
[0; 4], [0; 4],
None, None,
0, blur_strength,
FRAME_TIME_FILTER, FRAME_TIME_FILTER,
push, push,
None, None,