mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
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>
(cherry picked from commit dcfde02bb0)
This commit is contained in:
parent
98fd4107c4
commit
ec9175a804
1 changed files with 4 additions and 0 deletions
|
|
@ -784,6 +784,10 @@ NineDevice9_SetCursorPosition( struct NineDevice9 *This,
|
|||
|
||||
DBG("This=%p X=%d Y=%d Flags=%d\n", This, X, Y, Flags);
|
||||
|
||||
if (This->cursor.pos.x == X &&
|
||||
This->cursor.pos.y == Y)
|
||||
return;
|
||||
|
||||
This->cursor.pos.x = X;
|
||||
This->cursor.pos.y = Y;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue