compositor: Change notify_motion to take relative motion events

This commit is contained in:
Kristian Høgsberg 2013-02-25 17:04:47 -05:00 committed by Jonas Ådahl
parent b3e195bd27
commit 9d92a07996

View 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;