devilhorns pushed a commit to branch master.

commit 9e371c10c85593872421e5e0a0b8d85d3ab05643
Author: Chris Michael <[email protected]>
Date:   Fri Aug 16 09:55:23 2013 +0100

    Get surface from the surface_resource data using
    wl_resource_get_user_data function.
    
    Signed-off-by: Chris Michael <[email protected]>
---
 src/bin/e_comp_wl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bin/e_comp_wl.c b/src/bin/e_comp_wl.c
index 58efb6a..af9d776 100644
--- a/src/bin/e_comp_wl.c
+++ b/src/bin/e_comp_wl.c
@@ -2251,7 +2251,7 @@ _e_comp_wl_pointer_cb_cursor_set(struct wl_client 
*client, struct wl_resource *r
      return;
 
    /* if we were passed in a surface, try to cast it to our structure */
-   if (surface_resource) ews = (E_Wayland_Surface *)surface_resource->data;
+   if (surface_resource) ews = wl_resource_get_user_data(surface_resource);
 
    /* if this input has no pointer, get out */
    if (!input->has_pointer) return;

-- 

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk

Reply via email to