diff options
author | Chris Michael <cp.michael@samsung.com> | 2014-11-03 11:29:59 -0500 |
---|---|---|
committer | Chris Michael <cp.michael@samsung.com> | 2014-11-03 12:27:13 -0500 |
commit | ee9e9a51ee392d7b8638bf457a207f60e6922561 (patch) | |
tree | b4482b09f6f0ec78e309e7a17f722dfa6a711c17 | |
parent | 60c967a5ba4289f110149544afad4ba2b9289ccb (diff) | |
download | enlightenment-ee9e9a51ee392d7b8638bf457a207f60e6922561.tar.gz |
e-comp-wl: Implement subsurface desynchronized_set function
Signed-off-by: Chris Michael <cp.michael@samsung.com>
-rw-r--r-- | src/bin/e_comp_wl.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/bin/e_comp_wl.c b/src/bin/e_comp_wl.c index 2d7146fdbd..c818e7974f 100644 --- a/src/bin/e_comp_wl.c +++ b/src/bin/e_comp_wl.c @@ -1337,7 +1337,17 @@ _e_comp_wl_subsurface_cb_sync_set(struct wl_client *client EINA_UNUSED, struct w static void _e_comp_wl_subsurface_cb_desync_set(struct wl_client *client EINA_UNUSED, struct wl_resource *resource) { + E_Client *ec; + E_Comp_Wl_Subsurf_Data *sdata; + DBG("Subsurface Cb Desync 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_FALSE; } static const struct wl_subsurface_interface _e_subsurface_interface = |