discomfitor pushed a commit to branch enlightenment-0.21.

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

commit 5a69750ba9fe1147bd1d4e06e7c2dd516625aa12
Author: Mike Blumenkrantz <[email protected]>
Date:   Fri Feb 10 17:23:43 2017 -0500

    reset compositor pointer cursor if wl surface destroy is the current cursor
    
    this should never happen and is only included as a failsafe
    
     #TheDisappointer
---
 src/bin/e_comp_wl.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/bin/e_comp_wl.c b/src/bin/e_comp_wl.c
index 0df1bdb..99eedc6 100644
--- a/src/bin/e_comp_wl.c
+++ b/src/bin/e_comp_wl.c
@@ -2456,6 +2456,14 @@ _e_comp_wl_client_cb_del(void *data EINA_UNUSED, 
E_Client *ec)
    E_FREE_FUNC(ec->comp_data->on_focus_timer, ecore_timer_del);
    if (ec->mouse.in)
      _e_comp_wl_mouse_out(ec);
+   else if (ec->comp_data->cursor)
+     {
+        Evas_Object *o;
+
+        ecore_evas_cursor_get(e_comp->ee, &o, NULL, NULL, NULL);
+        if (o == ec->frame)
+          e_pointer_object_set(e_comp->pointer, NULL, 0, 0);
+     }
 
    /* The resource destroy callback will walk the state->frames list,
     * so move the list to a temporary first.

-- 


Reply via email to