From 9f4eee33a24086d4aac0058f2fb6cc0b58ff28d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Mon, 6 Nov 2023 16:56:23 +0100 Subject: [PATCH] wayland/subsurface: Remove redundant g_node_unlink call If the sub-surface has no parent, the node was already unlinked by get_subsurface_placement_op. Part-of: --- src/wayland/meta-wayland-subsurface.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/wayland/meta-wayland-subsurface.c b/src/wayland/meta-wayland-subsurface.c index 45d3bc152..83680b408 100644 --- a/src/wayland/meta-wayland-subsurface.c +++ b/src/wayland/meta-wayland-subsurface.c @@ -417,10 +417,6 @@ wl_subsurface_destructor (struct wl_resource *resource) surface->protocol_state.parent = NULL; } - else - { - g_node_unlink (surface->protocol_state.subsurface_branch_node); - } surface->wl_subsurface = NULL; }