From c9a839ad6453d17bd80c097a38335c07599c9f67 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Tue, 10 Feb 2015 19:15:53 -0500 Subject: [PATCH] unset wl client cursor when no surface resource is passed this is probably not correct, but #barrel --- src/bin/e_comp_wl_input.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/bin/e_comp_wl_input.c b/src/bin/e_comp_wl_input.c index fbbffdcf3..56ec39014 100644 --- a/src/bin/e_comp_wl_input.c +++ b/src/bin/e_comp_wl_input.c @@ -36,6 +36,11 @@ _e_comp_wl_input_pointer_cb_cursor_set(struct wl_client *client, struct wl_resou /* get compositor data */ if (!(cdata = wl_resource_get_user_data(resource))) return; + if (!surface_resource) + { + e_pointer_object_set(e_comp->pointer, NULL, x, y); + return; + } wl_client_get_credentials(client, &pid, NULL, NULL); sid = e_comp_wl_id_get(wl_resource_get_id(surface_resource), pid); if (!(ec = e_pixmap_find_client(E_PIXMAP_TYPE_WL, sid)))