1
0
Fork 0
forked from wry/wry

Merge pull request #617 from mahkoh/jorth/damage-fix

subsurface: fix damage application when position changes
This commit is contained in:
mahkoh 2025-09-21 01:40:06 +02:00 committed by GitHub
commit 872518a87f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -139,6 +139,9 @@ impl WlSubsurface {
stacking_changed = true;
}
if let Some((mut x, mut y)) = pending.position.take() {
if self.surface.toplevel.is_some() {
self.damage();
}
client_wire_scale_to_logical!(self.surface.client, x, y);
self.position.set((x, y));
let (parent_x, parent_y) = self.parent.buffer_abs_pos.get().position();