From 60c967a5ba4289f110149544afad4ba2b9289ccb Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Mon, 3 Nov 2014 11:29:29 -0500 Subject: [PATCH] e-comp-wl: Implement subsurface synchronized_set function Signed-off-by: Chris Michael --- src/bin/e_comp_wl.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/bin/e_comp_wl.c b/src/bin/e_comp_wl.c index e32cd89..2d7146f 100644 --- a/src/bin/e_comp_wl.c +++ b/src/bin/e_comp_wl.c @@ -1321,7 +1321,17 @@ _e_comp_wl_subsurface_cb_place_below(struct wl_client *client EINA_UNUSED, struc static void _e_comp_wl_subsurface_cb_sync_set(struct wl_client *client EINA_UNUSED, struct wl_resource *resource) { + E_Client *ec; + E_Comp_Wl_Subsurf_Data *sdata; + DBG("Subsurface Cb Sync Set: %d", wl_resource_get_id(resource)); + + /* try to get the client from resource data */ + if (!(ec = wl_resource_get_user_data(resource))) return; + + if (!(sdata = ec->comp_data->sub.data)) return; + + sdata->synchronized = EINA_TRUE; } static void -- 2.7.4