mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-05-05 21:38:09 +02:00
evdev: Don't add output offset in evdev_process_absolute_motion()
We do that in weston_output_transform_coordinate() now.
This commit is contained in:
parent
23e4ec3e23
commit
95e1abf104
1 changed files with 2 additions and 4 deletions
|
|
@ -135,15 +135,13 @@ evdev_process_absolute_motion(struct evdev_device *device,
|
||||||
case ABS_X:
|
case ABS_X:
|
||||||
device->abs.x =
|
device->abs.x =
|
||||||
(e->value - device->abs.min_x) * screen_width /
|
(e->value - device->abs.min_x) * screen_width /
|
||||||
(device->abs.max_x - device->abs.min_x) +
|
(device->abs.max_x - device->abs.min_x);
|
||||||
device->output->x;
|
|
||||||
device->pending_events |= EVDEV_ABSOLUTE_MOTION;
|
device->pending_events |= EVDEV_ABSOLUTE_MOTION;
|
||||||
break;
|
break;
|
||||||
case ABS_Y:
|
case ABS_Y:
|
||||||
device->abs.y =
|
device->abs.y =
|
||||||
(e->value - device->abs.min_y) * screen_height /
|
(e->value - device->abs.min_y) * screen_height /
|
||||||
(device->abs.max_y - device->abs.min_y) +
|
(device->abs.max_y - device->abs.min_y);
|
||||||
device->output->y;
|
|
||||||
device->pending_events |= EVDEV_ABSOLUTE_MOTION;
|
device->pending_events |= EVDEV_ABSOLUTE_MOTION;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue