If 'below_obj' for 'E_Client' was created before it becomes subsurface,
then 'below_obj' has to be deleted.
Otherwise, it will cause undefined behavior.
Since 'below_obj' is to fill the background of toplevel surface which
wants to show opaque UI but submit buffers that has alpha channel for
overlay video, 'below_obj' obviously isn't for subsurface.
Change-Id: Ica92d9775b42fda5218e84a820f17cf05301f9f8
e_comp->new_clients++;
e_client_unignore(ec);
+ /* Delete 'below_obj' if it was created before 'E_Client' becomes subsurface.
+ * It's not for subsurface. */
+ E_FREE_FUNC(ec->comp_data->sub.below_obj, evas_object_del);
+
e_comp_wl_hook_call(E_COMP_WL_HOOK_SUBSURFACE_CREATE, ec);
return EINA_TRUE;