diff options
author | Kristian Høgsberg <krh@bitplanet.net> | 2013-07-26 10:40:32 -0700 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2013-07-29 10:40:55 -0700 |
commit | 38e8d70b2d4a2e8c5796abe3053ca2904cfd7db1 (patch) | |
tree | cc11f4af70ca183ea327bb18eac08643a37bd12a /src | |
parent | 1330bf7b0d4cca307a7a257a20df923251f4a361 (diff) | |
download | weston-38e8d70b2d4a2e8c5796abe3053ca2904cfd7db1.tar.gz weston-38e8d70b2d4a2e8c5796abe3053ca2904cfd7db1.tar.bz2 weston-38e8d70b2d4a2e8c5796abe3053ca2904cfd7db1.zip |
evdev: Don't add output offset in evdev_process_absolute_motion()
We do that in weston_output_transform_coordinate() now.
Diffstat (limited to 'src')
-rw-r--r-- | src/evdev.c | 6 |
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; } |