From cdfc8cf9679201571991a851bbacc29683d3b9aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Wed, 1 Nov 2023 16:25:54 +0100 Subject: [PATCH] wayland/subsurface: Reset position to (0, 0) in permanent unmap helper To make sure a new wl_subsurface created for the same wl_surface won't inherit the position from the wl_subsurface being destroyed. v2: * Move into permanently_unmap_subsurface Part-of: --- src/wayland/meta-wayland-subsurface.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wayland/meta-wayland-subsurface.c b/src/wayland/meta-wayland-subsurface.c index 1285053b2..46451dcaa 100644 --- a/src/wayland/meta-wayland-subsurface.c +++ b/src/wayland/meta-wayland-subsurface.c @@ -409,6 +409,7 @@ permanently_unmap_subsurface (MetaWaylandSurface *surface) transaction = meta_wayland_transaction_new (surface->compositor); meta_wayland_transaction_add_placement_op (transaction, surface->protocol_state.parent, op); + meta_wayland_transaction_add_subsurface_position (transaction, surface, 0, 0); meta_wayland_transaction_commit (transaction); surface->protocol_state.parent = NULL;