st/nine: Avoid redundant SetCursorPos calls
authorAxel Davy <davyaxel0@gmail.com>
Sat, 15 Sep 2018 19:32:53 +0000 (21:32 +0200)
committerAxel Davy <davyaxel0@gmail.com>
Tue, 25 Sep 2018 20:05:24 +0000 (22:05 +0200)
commitdcfde02bb0f0b9fdd8d45a22540683fe0aaab9ec
tree85a3f5c86a7afa699f863128b02cdd0b6ca5baee
parent112c7705973f619ac2a9bce8c8c53869256f69b4
st/nine: Avoid redundant SetCursorPos calls

For some applications SetCursorPosition
is called when a cursor event is received.

Our SetCursorPosition was always calling
wine SetCursorPos which would trigger
a cursor event.

The infinite loop is avoided by not calling
SetCursorPos when the position hasn't changed.
Found thanks to wine tests.

Fixes irresponsive GUI for some applications.

Fixes: https://github.com/iXit/Mesa-3D/issues/173
Signed-off-by: Axel Davy <davyaxel0@gmail.com>
CC: <mesa-stable@lists.freedesktop.org>
src/gallium/state_trackers/nine/device9.c