discomfitor pushed a commit to branch master.

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

commit c9a839ad6453d17bd80c097a38335c07599c9f67
Author: Mike Blumenkrantz <[email protected]>
Date:   Tue Feb 10 19:15:53 2015 -0500

    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 fbbffdc..56ec390 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)))

-- 


Reply via email to