element: Allow overriding default scanout behaviour

This commit is contained in:
Victoria Brekenfeld 2025-07-22 16:39:33 +02:00 committed by Victoria Brekenfeld
parent be1424f1ca
commit c3d2b5f0b7
8 changed files with 52 additions and 9 deletions

View file

@ -649,6 +649,7 @@ impl CosmicStack {
location: Point<i32, Physical>,
scale: Scale<f64>,
alpha: f32,
scanout_override: Option<bool>,
) -> Vec<C>
where
R: Renderer + ImportAll + ImportMem,
@ -675,7 +676,11 @@ impl CosmicStack {
let active = p.active.load(Ordering::SeqCst);
windows[active].render_elements::<R, CosmicStackRenderElement<R>>(
renderer, window_loc, scale, alpha,
renderer,
window_loc,
scale,
alpha,
scanout_override,
)
}));