summaryrefslogtreecommitdiff
path: root/src/evdev.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/evdev.c')
-rw-r--r--src/evdev.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/evdev.c b/src/evdev.c
index 08aa7276..a5543023 100644
--- a/src/evdev.c
+++ b/src/evdev.c
@@ -135,15 +135,13 @@ evdev_process_absolute_motion(struct evdev_device *device,
case ABS_X:
device->abs.x =
(e->value - device->abs.min_x) * screen_width /
- (device->abs.max_x - device->abs.min_x) +
- device->output->x;
+ (device->abs.max_x - device->abs.min_x);
device->pending_events |= EVDEV_ABSOLUTE_MOTION;
break;
case ABS_Y:
device->abs.y =
(e->value - device->abs.min_y) * screen_height /
- (device->abs.max_y - device->abs.min_y) +
- device->output->y;
+ (device->abs.max_y - device->abs.min_y);
device->pending_events |= EVDEV_ABSOLUTE_MOTION;
break;
}