efl-wl: ensure that child_added event is called only when a parent is set

Reviewers: devilhorns

Reviewed By: devilhorns

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D11443
This commit is contained in:
Mike Blumenkrantz 2020-03-03 13:42:43 -05:00
parent 43f98b2d46
commit 0fb7acabc2
1 changed files with 2 additions and 1 deletions

View File

@ -3239,7 +3239,8 @@ shell_surface_toplevel_set_parent(struct wl_client *client EINA_UNUSED, struct w
if (parent_resource) pcs = wl_resource_get_user_data(parent_resource);
comp_surface_reparent(cs, pcs);
evas_object_smart_callback_call(cs->c->obj, "child_added", cs->obj);
if (parent_resource)
evas_object_smart_callback_call(cs->c->obj, "child_added", cs->obj);
}
static void