1
0
Fork 0
forked from wry/wry

float: apply damage when restacking

This commit is contained in:
Julian Orth 2025-07-16 20:36:11 +02:00
parent 36055be188
commit dd332881a5
2 changed files with 2 additions and 0 deletions

View file

@ -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();

View file

@ -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();