From 300738db1ff784de13df1e0da6420e424fea4da0 Mon Sep 17 00:00:00 2001 From: Julian Orth Date: Sun, 21 Sep 2025 01:38:08 +0200 Subject: [PATCH] subsurface: fix damage application when position changes --- src/ifs/wl_surface/wl_subsurface.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ifs/wl_surface/wl_subsurface.rs b/src/ifs/wl_surface/wl_subsurface.rs index be00ab8d..30ddc790 100644 --- a/src/ifs/wl_surface/wl_subsurface.rs +++ b/src/ifs/wl_surface/wl_subsurface.rs @@ -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();