aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/hw/xwin/winmouse.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2011-11-08 10:27:32 +0100
committermarha <marha@users.sourceforge.net>2011-11-08 10:27:32 +0100
commitc4f95f53617d5efd78de5b8b6a13fe937fb5478f (patch)
tree7ba4b095e3e4c116be4e7b30df946838cfc56286 /xorg-server/hw/xwin/winmouse.c
parent8e620d3f39b8a94dca2d501e60ad5593b83a3477 (diff)
downloadvcxsrv-c4f95f53617d5efd78de5b8b6a13fe937fb5478f.tar.gz
vcxsrv-c4f95f53617d5efd78de5b8b6a13fe937fb5478f.tar.bz2
vcxsrv-c4f95f53617d5efd78de5b8b6a13fe937fb5478f.zip
miPointerSetPosition interface has been changes (solved problem of mouse
not working anymore)
Diffstat (limited to 'xorg-server/hw/xwin/winmouse.c')
-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;