dix: clip absolute axes depending on their mode.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
This commit is contained in:
parent
ea567b675f
commit
b5ef88c911
|
@ -767,9 +767,11 @@ moveRelative(DeviceIntPtr dev, int *x, int *y, ValuatorMask *mask)
|
||||||
/* if attached, clip both x and y to the defined limits (usually
|
/* 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
|
* co-ord space limit). If it is attached, we need x/y to go over the
|
||||||
* limits to be able to change screens. */
|
* limits to be able to change screens. */
|
||||||
if(dev->u.master && dev->valuator->mode == Absolute) {
|
if(dev->u.master) {
|
||||||
clipAxis(dev, 0, x);
|
if (valuator_get_mode(dev, 0) == Absolute)
|
||||||
clipAxis(dev, 1, y);
|
clipAxis(dev, 0, x);
|
||||||
|
if (valuator_get_mode(dev, 1) == Absolute)
|
||||||
|
clipAxis(dev, 1, y);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* calc other axes, clip, drop back into valuators */
|
/* calc other axes, clip, drop back into valuators */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user