From fbb17af2d6a9c2671d0c134f7413bfb068a0e37e Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Mon, 31 Oct 2016 09:25:51 -0400 Subject: [PATCH] don't crash is surface resource has no e_client wl_resource_get_user_data(surface_resource) could return NULL if the surface resource has no user data set. This happens with Ecore_Wl2 Windows which are set to type 'None', so add check for valid e_client. Signed-off-by: Chris Michael --- src/bin/e_comp_wl_input.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/bin/e_comp_wl_input.c b/src/bin/e_comp_wl_input.c index 3a77da8af..e396572a4 100644 --- a/src/bin/e_comp_wl_input.c +++ b/src/bin/e_comp_wl_input.c @@ -69,7 +69,10 @@ _e_comp_wl_input_pointer_cb_cursor_set(struct wl_client *client, struct wl_resou e_pointer_object_set(e_comp->pointer, NULL, x, y); return; } + ec = wl_resource_get_user_data(surface_resource); + if (!ec) return; + if (!ec->re_manage) { ec->comp_data->cursor = ec->re_manage = 1;