From f64a570569289b6e5163d44f4649005720915d94 Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Thu, 16 Oct 2014 12:25:59 -0400 Subject: [PATCH] add hoook for evas show callback and show any video childs Signed-off-by: Chris Michael --- src/bin/e_comp_wl.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/bin/e_comp_wl.c b/src/bin/e_comp_wl.c index 73b46b117..32e718848 100644 --- a/src/bin/e_comp_wl.c +++ b/src/bin/e_comp_wl.c @@ -75,9 +75,29 @@ _e_comp_wl_cb_module_idle(void *data) return ECORE_CALLBACK_RENEW; } +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; }