efl-wl: unset cursor role on existing cursor surface if new cursor is set

this avoids killing clients which replace cursors

@fix
This commit is contained in:
Mike Blumenkrantz 2018-01-12 15:49:06 -05:00
parent b585dd0de7
commit 60028fafb7
1 changed files with 5 additions and 1 deletions

View File

@ -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)
{