aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ecore_drm/ecore_drm_device.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/ecore_drm/ecore_drm_device.c')
-rw-r--r--src/lib/ecore_drm/ecore_drm_device.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/ecore_drm/ecore_drm_device.c b/src/lib/ecore_drm/ecore_drm_device.c
index 3e70d24048..9d0442caa4 100644
--- a/src/lib/ecore_drm/ecore_drm_device.c
+++ b/src/lib/ecore_drm/ecore_drm_device.c
@@ -442,12 +442,12 @@ ecore_drm_device_pointer_xy_get(Ecore_Drm_Device *dev, int *x, int *y)
{
EINA_LIST_FOREACH(seat->devices, ll, edev)
{
- if (!libinput_device_has_capability(edev->device,
+ if (!libinput_device_has_capability(edev->device,
LIBINPUT_DEVICE_CAP_POINTER))
continue;
- if (x) *x = edev->mouse.dx;
- if (y) *y = edev->mouse.dy;
+ if (x) *x = seat->ptr.dx;
+ if (y) *y = seat->ptr.dy;
return;
}