mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-04-05 12:30:42 +02:00
evdev: run flush_motion only when needed
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
This commit is contained in:
parent
75953314cf
commit
47dfaffa0e
1 changed files with 3 additions and 0 deletions
|
|
@ -221,6 +221,9 @@ static void
|
|||
evdev_flush_motion(struct wl_input_device *device, uint32_t time,
|
||||
struct evdev_motion_accumulator *accum)
|
||||
{
|
||||
if (!accum->type)
|
||||
return;
|
||||
|
||||
if (accum->type == EVDEV_RELATIVE_MOTION)
|
||||
notify_motion(device, time,
|
||||
device->x + accum->dx, device->y + accum->dy);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue