devilhorns pushed a commit to branch master. http://git.enlightenment.org/core/enlightenment.git/commit/?id=59e431d8383618bf4260732b51af06ae3437eb45
commit 59e431d8383618bf4260732b51af06ae3437eb45 Author: Chris Michael <[email protected]> Date: Fri Oct 17 04:43:11 2014 -0400 add evas callback for ping event Signed-off-by: Chris Michael <[email protected]> --- src/bin/e_comp_wl.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/bin/e_comp_wl.c b/src/bin/e_comp_wl.c index b9604b5..fd6a4e9 100644 --- a/src/bin/e_comp_wl.c +++ b/src/bin/e_comp_wl.c @@ -459,6 +459,20 @@ _e_comp_wl_evas_cb_kill_request(void *data, Evas_Object *obj EINA_UNUSED, void * } static void +_e_comp_wl_evas_cb_ping(void *data, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED) +{ + E_Client *ec; + + if (!(ec = data)) return; + + if (ec->comp_data->shell.ping) + { + if (ec->comp_data->shell.surface) + ec->comp_data->shell.ping(ec->comp_data->shell.surface); + } +} + +static void _e_comp_wl_client_evas_init(E_Client *ec) { evas_object_event_callback_add(ec->frame, EVAS_CALLBACK_SHOW, @@ -490,6 +504,10 @@ _e_comp_wl_client_evas_init(E_Client *ec) evas_object_smart_callback_add(ec->frame, "kill_request", _e_comp_wl_evas_cb_kill_request, ec); + /* setup ping callback */ + evas_object_smart_callback_add(ec->frame, "ping", + _e_comp_wl_evas_cb_ping, ec); + ec->comp_data->evas_init = EINA_TRUE; } --
