mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-05 05:10:26 +01:00
compositor: Change notify_motion to take relative motion events
This commit is contained in:
parent
b3e195bd27
commit
9d92a07996
1 changed files with 1 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue