shell/element: Don't render decorations for dead windows
This commit is contained in:
parent
6d0f1b273f
commit
15bbada498
3 changed files with 32 additions and 18 deletions
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue