Skip to content

Fix absolute events filtering

When a device has multiple regions, ei_device_pointer_motion_absolute() would walk all of the regions and bail out if the coordinates are outside any region.

As a matter of facts, it means that an absolute event must fall within all the device regions to succeed.

That doesn't seem right, it should be the opposite, the coordinates must be within at least one region.

Fix the logic by reusing the existing ei_device_in_region() function.

Signed-off-by: Olivier Fourdan ofourdan@redhat.com

Merge request reports