float: apply damage when restacking
This commit is contained in:
parent
36055be188
commit
dd332881a5
2 changed files with 2 additions and 0 deletions
|
|
@ -490,6 +490,7 @@ impl XdgSurface {
|
|||
let stack = self.popup_display_stack.get();
|
||||
for popup in self.popups.lock().values() {
|
||||
if let Some(dl) = &*popup.display_link.borrow() {
|
||||
popup.popup.xdg.damage();
|
||||
stack.add_last_existing(dl);
|
||||
}
|
||||
popup.popup.xdg.restack_popups();
|
||||
|
|
|
|||
|
|
@ -519,6 +519,7 @@ impl FloatNode {
|
|||
|
||||
fn restack(&self) {
|
||||
if let Some(dl) = &*self.display_link.borrow() {
|
||||
self.state.damage(self.position.get());
|
||||
self.state.root.stacked.add_last_existing(&dl);
|
||||
if let Some(tl) = self.child.get() {
|
||||
tl.tl_restack_popups();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue