surface: No need to unmap views before destroy
This happens as a part of weston_view_destroy(). Signed-off-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
parent
17af1c4d20
commit
da8c8f96d2
@ -5142,10 +5142,8 @@ weston_subsurface_destroy(struct weston_subsurface *sub)
|
||||
assert(sub->parent_destroy_listener.notify ==
|
||||
subsurface_handle_parent_destroy);
|
||||
|
||||
wl_list_for_each_safe(view, next, &sub->surface->views, surface_link) {
|
||||
weston_view_unmap(view);
|
||||
wl_list_for_each_safe(view, next, &sub->surface->views, surface_link)
|
||||
weston_view_destroy(view);
|
||||
}
|
||||
|
||||
if (sub->parent)
|
||||
weston_subsurface_unlink_parent(sub);
|
||||
|
Loading…
Reference in New Issue
Block a user