summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2014-12-10 10:19:54 -0500
committerChris Michael <cp.michael@samsung.com>2014-12-10 12:01:58 -0500
commitd3d5c80ad6b82c594f318bb259dad3d1cb109121 (patch)
tree9590fd10e41c990eee5a5c241db305a6e16c51ef /src/lib
parented12acbfc660d517e7697ddc16c553f796da4ae2 (diff)
ecore-drm: Update pointer motion event coordinates
Summary: This fixes pointer motion events to be transformed based on output coordinates @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/ecore_drm/ecore_drm_evdev.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/ecore_drm/ecore_drm_evdev.c b/src/lib/ecore_drm/ecore_drm_evdev.c
index 604f98ef8b..d73e05a1d2 100644
--- a/src/lib/ecore_drm/ecore_drm_evdev.c
+++ b/src/lib/ecore_drm/ecore_drm_evdev.c
@@ -341,8 +341,10 @@ _device_handle_pointer_motion_absolute(struct libinput_device *device, struct li
341 341
342 if (!(edev = libinput_device_get_user_data(device))) return; 342 if (!(edev = libinput_device_get_user_data(device))) return;
343 343
344 edev->mouse.x = libinput_event_pointer_get_absolute_x(event); 344 edev->mouse.x =
345 edev->mouse.y = libinput_event_pointer_get_absolute_y(event); 345 libinput_event_pointer_get_absolute_x_transformed(event, edev->output.w);
346 edev->mouse.y =
347 libinput_event_pointer_get_absolute_y_transformed(event, edev->output.h);
346 348
347 _device_pointer_motion(edev, event); 349 _device_pointer_motion(edev, event);
348} 350}