compositor: Change notify_motion to take relative motion events
authorKristian Høgsberg <krh@bitplanet.net>
Mon, 25 Feb 2013 22:04:47 +0000 (17:04 -0500)
committerJonas Ådahl <jadahl@gmail.com>
Sun, 10 Nov 2013 16:51:31 +0000 (17:51 +0100)
src/evdev.c

index a1fa01f..d2954b5 100644 (file)
@@ -254,9 +254,7 @@ evdev_flush_motion(struct evdev_device *device, uint32_t time)
 
        device->pending_events &= ~EVDEV_SYN;
        if (device->pending_events & EVDEV_RELATIVE_MOTION) {
-               notify_motion(master, time,
-                             master->seat.pointer->x + device->rel.dx,
-                             master->seat.pointer->y + device->rel.dy);
+               notify_motion(master, time, device->rel.dx, device->rel.dy);
                device->pending_events &= ~EVDEV_RELATIVE_MOTION;
                device->rel.dx = 0;
                device->rel.dy = 0;