discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=60028fafb7f5babf5715ff6642d2306aaa030a90

commit 60028fafb7f5babf5715ff6642d2306aaa030a90
Author: Mike Blumenkrantz <[email protected]>
Date:   Fri Jan 12 15:49:06 2018 -0500

    efl-wl: unset cursor role on existing cursor surface if new cursor is set
    
    this avoids killing clients which replace cursors
    
    @fix
---
 src/lib/efl_wl/efl_wl.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/lib/efl_wl/efl_wl.c b/src/lib/efl_wl/efl_wl.c
index 9dc37aa177..563b2ba285 100644
--- a/src/lib/efl_wl/efl_wl.c
+++ b/src/lib/efl_wl/efl_wl.c
@@ -3787,7 +3787,11 @@ seat_ptr_set_cursor(struct wl_client *client, struct 
wl_resource *resource, uint
         eina_tiler_clear(cs->pending.input);
         evas_object_pass_events_set(cs->obj, 1);
      }
-   if (s->ptr.cursor.surface) s->ptr.cursor.surface->cursor = 0;
+   if (s->ptr.cursor.surface)
+     {
+        s->ptr.cursor.surface->cursor = 0;
+        s->ptr.cursor.surface->role = NULL;
+     }
 
    if (s->ptr.in)
      {

-- 


Reply via email to