stack: Set suspended state
This commit is contained in:
parent
ddea391129
commit
32424d156a
1 changed files with 12 additions and 1 deletions
|
|
@ -1035,7 +1035,18 @@ impl SpaceElement for CosmicStack {
|
||||||
.fetch_update(Ordering::SeqCst, Ordering::SeqCst, |active| {
|
.fetch_update(Ordering::SeqCst, Ordering::SeqCst, |active| {
|
||||||
(active >= len).then_some(len - 1)
|
(active >= len).then_some(len - 1)
|
||||||
});
|
});
|
||||||
windows.iter().for_each(|w| SpaceElement::refresh(w));
|
let active = p.active.load(Ordering::SeqCst);
|
||||||
|
|
||||||
|
windows.iter().enumerate().for_each(|(i, w)| {
|
||||||
|
if i == active {
|
||||||
|
w.set_suspended(false);
|
||||||
|
} else {
|
||||||
|
w.set_suspended(true);
|
||||||
|
}
|
||||||
|
w.send_configure();
|
||||||
|
|
||||||
|
SpaceElement::refresh(w)
|
||||||
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue