float: optimize restacking
This commit is contained in:
parent
a97e92ccea
commit
d038df28f7
1 changed files with 3 additions and 0 deletions
|
|
@ -519,6 +519,9 @@ impl FloatNode {
|
|||
|
||||
fn restack(&self) {
|
||||
if let Some(dl) = &*self.display_link.borrow() {
|
||||
if dl.next().is_none() {
|
||||
return;
|
||||
}
|
||||
self.state.damage(self.position.get());
|
||||
self.state.root.stacked.add_last_existing(&dl);
|
||||
if let Some(tl) = self.child.get() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue