A subsurface will be destroyed after its parent surface because the
subsurface becomes inert when its parent is destroyed.
Thus, we can make sure that a subsurface always has a valid parent.
Change-Id: I50ac03e9e3e7bd4373a2f028d89697d597016889
subsurface = wl_container_of(listener, subsurface,
listener.parent_destroy);
- subsurface_unlink_parent(subsurface);
+ subsurface_destroy(subsurface);
}
static void
do {
if (iter->synchronized)
return true;
-
- if (!iter->parent)
- break;
} while ((iter = subsurface_from_ds_surface(iter->parent)));
return false;