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

@ -606,6 +606,10 @@ impl CosmicMapped {
CosmicMappedRenderElement<R>: RenderElement<R>,
C: From<CosmicMappedRenderElement<R>>,
{
if !self.element.alive() {
return None;
}
match &self.element {
CosmicMappedInternal::Stack(s) => s
.shadow_render_element::<R, CosmicMappedRenderElement<R>>(