[client] ds: avoid util_cursorToInt when warping pointer

Using util_cursorToInt messes with the error tracking for normal movements,
and is not necessary since we are computing an absolute position on the
client window.

Instead, we should pass doubles directly to display servers and let them
decide how to best handle them. For example, XIWarpPointer accepts doubles
directly.
This commit is contained in:
Quantum authored and Geoffrey McRae committed 2021-05-04 19:02:13 +10:00
1 parent 71c9680245
commit 0f2fd84724
5 files changed
+10 -10

No files matched your search

+1 -1
View File
@@ -129,7 +129,7 @@ struct LG_DisplayServerOps
#endif
/* dm specific cursor implementations */
void (*guestPointerUpdated)(double x, double y, int localX, int localY);
void (*guestPointerUpdated)(double x, double y, double localX, double localY);
void (*showPointer)(bool show);
void (*grabKeyboard)();
void (*ungrabKeyboard)();