aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/dix/getevents.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2010-03-11 12:42:42 +0000
committermarha <marha@users.sourceforge.net>2010-03-11 12:42:42 +0000
commitf9ca27d49a3e7880fb3e61bc5892458b0c3f6d6d (patch)
treef6542256ec422862a1f537f301a87db573900d59 /xorg-server/dix/getevents.c
parentc394f19a54ed3cc959a47cdde6dbb53f31a9fa87 (diff)
downloadvcxsrv-f9ca27d49a3e7880fb3e61bc5892458b0c3f6d6d.tar.gz
vcxsrv-f9ca27d49a3e7880fb3e61bc5892458b0c3f6d6d.tar.bz2
vcxsrv-f9ca27d49a3e7880fb3e61bc5892458b0c3f6d6d.zip
Git update 11/3/2010
Diffstat (limited to 'xorg-server/dix/getevents.c')
-rw-r--r--xorg-server/dix/getevents.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/xorg-server/dix/getevents.c b/xorg-server/dix/getevents.c
index 82bb77b4b..197deb4fb 100644
--- a/xorg-server/dix/getevents.c
+++ b/xorg-server/dix/getevents.c
@@ -710,7 +710,7 @@ moveRelative(DeviceIntPtr dev, int *x, int *y,
/* if attached, clip both x and y to the defined limits (usually
* co-ord space limit). If it is attached, we need x/y to go over the
* limits to be able to change screens. */
- if(dev->u.master) {
+ if(dev->u.master && dev->valuator->mode == Absolute) {
clipAxis(dev, 0, x);
clipAxis(dev, 1, y);
}
@@ -720,7 +720,8 @@ moveRelative(DeviceIntPtr dev, int *x, int *y,
for (; i < num; i++)
{
dev->last.valuators[i + first] += valuators[i];
- clipAxis(dev, i, &dev->last.valuators[i + first]);
+ if (dev->valuator->mode == Absolute)
+ clipAxis(dev, i, &dev->last.valuators[i + first]);
valuators[i] = dev->last.valuators[i + first];
}
}