shell/element: Don't render decorations for dead windows

This commit is contained in:
Victoria Brekenfeld 2025-12-17 18:11:51 +01:00 committed by Victoria Brekenfeld
parent 6d0f1b273f
commit 15bbada498
3 changed files with 32 additions and 18 deletions

View file

@ -730,6 +730,13 @@ impl CosmicStack {
R::TextureId: Send + Clone + 'static,
C: From<CosmicStackRenderElement<R>>,
{
if !self
.0
.with_program(|p| p.override_alive.load(Ordering::Acquire))
{
return Vec::new();
}
let geometry = self
.0
.with_program(|p| p.windows.lock().unwrap()[p.active.load(Ordering::SeqCst)].geometry())