diff --git a/src/lib/efl_wl/efl_wl.c b/src/lib/efl_wl/efl_wl.c index 4b1afa64ec..304d9d8dd8 100644 --- a/src/lib/efl_wl/efl_wl.c +++ b/src/lib/efl_wl/efl_wl.c @@ -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