summaryrefslogtreecommitdiff
path: root/src/lib/efl_wl/efl_wl.c
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2017-10-19 12:57:28 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2017-10-25 10:44:16 -0400
commite9572a653742f0e613905e47767ae116297928d3 (patch)
treeafc9397aeae32b63728e5aa0a02172621fbb1ada /src/lib/efl_wl/efl_wl.c
parentc7f9f2eef1fa344f6dadd09c9c3eaa7203b7ca92 (diff)
efl_wl: add function for returning the evas object for an extracted surface
@feature
Diffstat (limited to '')
-rw-r--r--src/lib/efl_wl/efl_wl.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/lib/efl_wl/efl_wl.c b/src/lib/efl_wl/efl_wl.c
index 9eec04e916..7e76d2a765 100644
--- a/src/lib/efl_wl/efl_wl.c
+++ b/src/lib/efl_wl/efl_wl.c
@@ -5561,3 +5561,15 @@ efl_wl_surface_extract(Evas_Object *surface)
5561 evas_object_smart_member_del(surface); 5561 evas_object_smart_member_del(surface);
5562 return EINA_TRUE; 5562 return EINA_TRUE;
5563} 5563}
5564
5565Evas_Object *
5566efl_wl_extracted_surface_object_find(void *surface_resource)
5567{
5568 Comp_Surface *cs = wl_resource_get_user_data(surface_resource);
5569
5570 EINA_SAFETY_ON_NULL_RETURN_VAL(cs, NULL);
5571 EINA_SAFETY_ON_TRUE_RETURN_VAL(!cs->extracted, NULL);
5572 EINA_SAFETY_ON_TRUE_RETURN_VAL(cs->dead, NULL);
5573
5574 return cs->obj;
5575}