devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=393f3c90dda27050c5264c3aa7bfdd75a87d2ff8

commit 393f3c90dda27050c5264c3aa7bfdd75a87d2ff8
Author: Chris Michael <[email protected]>
Date:   Mon Nov 3 11:28:31 2014 -0500

    e-comp-wl: Implement subsurface position set function
    
    Signed-off-by: Chris Michael <[email protected]>
---
 src/bin/e_comp_wl.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/src/bin/e_comp_wl.c b/src/bin/e_comp_wl.c
index 2eb6463..e32cd89 100644
--- a/src/bin/e_comp_wl.c
+++ b/src/bin/e_comp_wl.c
@@ -1291,7 +1291,19 @@ _e_comp_wl_subsurface_cb_destroy(struct wl_client 
*client EINA_UNUSED, struct wl
 static void 
 _e_comp_wl_subsurface_cb_position_set(struct wl_client *client EINA_UNUSED, 
struct wl_resource *resource, int32_t x, int32_t y)
 {
+   E_Client *ec;
+   E_Comp_Wl_Subsurf_Data *sdata;
+
    DBG("Subsurface Cb Position 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->position.x = x;
+   sdata->position.y = y;
+   sdata->position.set = EINA_TRUE;
 }
 
 static void 

-- 


Reply via email to