aboutsummaryrefslogtreecommitdiff
path: root/xorg-server
diff options
context:
space:
mode:
Diffstat (limited to 'xorg-server')
-rw-r--r--xorg-server/hw/xwin/winmouse.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/xorg-server/hw/xwin/winmouse.c b/xorg-server/hw/xwin/winmouse.c
index 6af887826..efd1fb649 100644
--- a/xorg-server/hw/xwin/winmouse.c
+++ b/xorg-server/hw/xwin/winmouse.c
@@ -368,8 +368,10 @@ void winEnqueueMotion(int x, int y)
{
int valuators[2];
ValuatorMask mask;
+ double dbl_x=(double)x;
+ double dbl_y=(double)y;
- miPointerSetPosition(g_pwinPointer, POINTER_RELATIVE, &x, &y);
+ miPointerSetPosition(g_pwinPointer, Absolute, &dbl_x, &dbl_y);
valuators[0] = x;
valuators[1] = y;