summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
e808ca5)
seat->ptr.x/y could be updated by TOUCH or POINTER device.
This patch fixes the bug that if no POINTER device is attached, user couldn't
get the right values of ptr.x/y.
Change-Id: I9a8c7b708882a30a81a02db6ad6f4d2a4a87aed8
{
EINA_LIST_FOREACH(seat->devices, ll, edev)
{
{
EINA_LIST_FOREACH(seat->devices, ll, edev)
{
- if (!libinput_device_has_capability(edev->device,
- LIBINPUT_DEVICE_CAP_POINTER))
+ if (!(edev->caps & E_INPUT_SEAT_POINTER ||
+ edev->caps & E_INPUT_SEAT_TOUCH))
continue;
if (x) *x = seat->ptr.dx;
continue;
if (x) *x = seat->ptr.dx;