input: Make setting the same pointer cursor state again a no-op

Graphics / Wayland / Weston - Jonas Ådahl [gmail.com] - 19 March 2015 22:58 UTC

If the client calls wl_pointer.set_cursor with the same surface and hot spot coordinate 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.

b407024 input: Make setting the same pointer cursor state again a no-op
src/input.c | 4 ++++
1 file changed, 4 insertions(+)

Upstream: cgit.freedesktop.org


  • Share