From 9e371c10c85593872421e5e0a0b8d85d3ab05643 Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Fri, 16 Aug 2013 09:55:23 +0100 Subject: [PATCH] Get surface from the surface_resource data using wl_resource_get_user_data function. Signed-off-by: Chris Michael --- 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; -- 2.7.4