1
0
Fork 0
forked from wry/wry

Merge pull request #505 from mahkoh/jorth/restack-damage

float: apply damage when restacking
This commit is contained in:
mahkoh 2025-07-16 20:39:01 +02:00 committed by GitHub
commit a840eff108
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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();