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: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3364>
This commit is contained in:
parent
a2863fc1ea
commit
9f4eee33a2
@ -417,10 +417,6 @@ wl_subsurface_destructor (struct wl_resource *resource)
|
|||||||
|
|
||||||
surface->protocol_state.parent = NULL;
|
surface->protocol_state.parent = NULL;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
g_node_unlink (surface->protocol_state.subsurface_branch_node);
|
|
||||||
}
|
|
||||||
|
|
||||||
surface->wl_subsurface = NULL;
|
surface->wl_subsurface = NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user