Re: [PATCH weston] input: Make setting the same pointer cursor surface again a no-op

2015-03-18 Thread Derek Foreman
On 18/03/15 02:16 AM, Jonas Ådahl wrote: > If the client calls wl_pointer.set_cursor with the same surface that is > already set, don't do anything as no state was changed. > > This avoids an issue where a client setting the same cursor surface > multiple times would receive wl_surface.leave/enter

[PATCH weston] input: Make setting the same pointer cursor surface again a no-op

2015-03-18 Thread Jonas Ådahl
If the client calls wl_pointer.set_cursor with the same surface that is already set, don't do anything as no state was changed. This avoids an issue where a client setting the same cursor surface multiple times would receive wl_surface.leave/enter on that surface every time. Signed-off-by: Jonas