summaryrefslogtreecommitdiff
path: root/src/lib/efl_wl
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2020-03-03 13:42:43 -0500
committerMike Blumenkrantz <zmike@samsung.com>2020-03-03 13:42:43 -0500
commit0fb7acabc2b63658e95ddb5bfc0a150530342ba1 (patch)
treedbbb3d30d373dff00691992c18c60794cf677462 /src/lib/efl_wl
parent43f98b2d46eef463a6cbef55c265aaba1fb1345b (diff)
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
Diffstat (limited to 'src/lib/efl_wl')
-rw-r--r--src/lib/efl_wl/efl_wl.c3
1 files changed, 2 insertions, 1 deletions
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
3239 if (parent_resource) pcs = wl_resource_get_user_data(parent_resource); 3239 if (parent_resource) pcs = wl_resource_get_user_data(parent_resource);
3240 3240
3241 comp_surface_reparent(cs, pcs); 3241 comp_surface_reparent(cs, pcs);
3242 evas_object_smart_callback_call(cs->c->obj, "child_added", cs->obj); 3242 if (parent_resource)
3243 evas_object_smart_callback_call(cs->c->obj, "child_added", cs->obj);
3243} 3244}
3244 3245
3245static void 3246static void