diff options
author | Chris Michael <cp.michael@samsung.com> | 2014-10-16 12:25:59 -0400 |
---|---|---|
committer | Chris Michael <cp.michael@samsung.com> | 2014-10-16 12:25:59 -0400 |
commit | 5ca6814cc1426ab1998198e841f9186e1e425b47 (patch) | |
tree | a1231aac6a5357c65524f0609c62f89037456c43 | |
parent | 59c9f5f89ff4ecae9235c6be614c843be041692b (diff) | |
download | enlightenment-5ca6814cc1426ab1998198e841f9186e1e425b47.tar.gz |
add hoook for evas show callback and show any video childs
Signed-off-by: Chris Michael <cp.michael@samsung.com>
-rw-r--r-- | src/bin/e_comp_wl.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/bin/e_comp_wl.c b/src/bin/e_comp_wl.c index 73b46b1179..32e7188487 100644 --- a/src/bin/e_comp_wl.c +++ b/src/bin/e_comp_wl.c @@ -76,8 +76,28 @@ _e_comp_wl_cb_module_idle(void *data) } static void +_e_comp_wl_evas_cb_show(void *data, Evas *evas EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED) +{ + E_Client *ec, *tmp; + Eina_List *l; + + if (!(ec = data)) return; + + /* check for wayland pixmap */ + E_COMP_WL_PIXMAP_CHECK; + + if (!ec->override) e_hints_window_visible_set(ec); + + EINA_LIST_FOREACH(ec->e.state.video_child, l, tmp) + evas_object_show(tmp->frame); +} + +static void _e_comp_wl_client_evas_init(E_Client *ec) { + evas_object_event_callback_add(ec->frame, EVAS_CALLBACK_SHOW, + _e_comp_wl_evas_cb_show, ec); + ec->comp_data->evas_init = EINA_TRUE; } |