summaryrefslogtreecommitdiff
path: root/src/lib/ecore_drm/ecore_drm_device.c
diff options
context:
space:
mode:
authorDuna Oh <duna.oh@samsung.com>2015-11-30 11:05:07 -0500
committerChris Michael <cp.michael@samsung.com>2015-11-30 11:05:07 -0500
commit21b1a3f221fb6bd477cfefbb9d0099717c13523d (patch)
tree9bc2572aff4d8d472393c50895a51480a03f6e61 /src/lib/ecore_drm/ecore_drm_device.c
parent527ac119f1de21034e761b24923b0cb06d946649 (diff)
ecore-drm: Add logical pointer x, y variable in seat for reflecting multiple pointer's movement
Summary: When one pointer moves, we should update the position of other devices. Test Plan: (1) Two pointer devices are connected. (2) Move the cursor to (x, y) position using "device 1". (3) When you move the cursor using "device 2", the cursor doesn't start from (x, y) position. This causes discontinuous mouse motion. Reviewers: raster, zmike, gwanglim, stefan_schmidt, devilhorns, ManMower Reviewed By: devilhorns, ManMower Subscribers: cedric, Jeon, input.hacker, jpeg Differential Revision: https://phab.enlightenment.org/D3384
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)
442 { 442 {
443 EINA_LIST_FOREACH(seat->devices, ll, edev) 443 EINA_LIST_FOREACH(seat->devices, ll, edev)
444 { 444 {
445 if (!libinput_device_has_capability(edev->device, 445 if (!libinput_device_has_capability(edev->device,
446 LIBINPUT_DEVICE_CAP_POINTER)) 446 LIBINPUT_DEVICE_CAP_POINTER))
447 continue; 447 continue;
448 448
449 if (x) *x = edev->mouse.dx; 449 if (x) *x = seat->ptr.dx;
450 if (y) *y = edev->mouse.dy; 450 if (y) *y = seat->ptr.dy;
451 451
452 return; 452 return;
453 } 453 }