mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-01-05 10:10:10 +01:00
evdev: don't handle motion events if the device isn't a pointer device
This check is already in place for all other event types. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
parent
8b6cc1cc95
commit
91f11eb961
1 changed files with 3 additions and 0 deletions
|
|
@ -289,6 +289,9 @@ evdev_flush_pending_event(struct evdev_device *device, uint64_t time)
|
|||
case EVDEV_NONE:
|
||||
return;
|
||||
case EVDEV_RELATIVE_MOTION:
|
||||
if (!(device->seat_caps & EVDEV_DEVICE_POINTER))
|
||||
break;
|
||||
|
||||
normalize_delta(device, &device->rel, &unaccel);
|
||||
raw.x = device->rel.x;
|
||||
raw.y = device->rel.y;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue