1
0
Fork 0
forked from wry/wry

subsurface: fix damage application when position changes

This commit is contained in:
Julian Orth 2025-09-21 01:38:08 +02:00
parent b1df50f649
commit 300738db1f

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