summaryrefslogtreecommitdiff
path: root/src/lib/ecore_drm/ecore_drm_evdev.c
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2016-01-25 16:20:18 -0600
committerMike Blumenkrantz <zmike@osg.samsung.com>2016-02-18 15:50:16 -0500
commitddc6962d775345ccb0eb4590486693efb3564075 (patch)
treef5679ecbde74256667077b0c607dea9ebe036144 /src/lib/ecore_drm/ecore_drm_evdev.c
parent4e953ecc4d83dae0f4360e1cb413a2a878617603 (diff)
ecore_drm: Add pointer warping API
Adds a new API: ecore_drm_device_pointer_warp() which warps the pointer to the specified location. All libinput seats with pointers are warped.
Diffstat (limited to '')
-rw-r--r--src/lib/ecore_drm/ecore_drm_evdev.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/ecore_drm/ecore_drm_evdev.c b/src/lib/ecore_drm/ecore_drm_evdev.c
index 35534f51ff..cf418f3442 100644
--- a/src/lib/ecore_drm/ecore_drm_evdev.c
+++ b/src/lib/ecore_drm/ecore_drm_evdev.c
@@ -399,7 +399,7 @@ _device_pointer_motion(Ecore_Drm_Evdev *edev, struct libinput_event_pointer *eve
399 ev->window = (Ecore_Window)input->dev->window; 399 ev->window = (Ecore_Window)input->dev->window;
400 ev->event_window = (Ecore_Window)input->dev->window; 400 ev->event_window = (Ecore_Window)input->dev->window;
401 ev->root_window = (Ecore_Window)input->dev->window; 401 ev->root_window = (Ecore_Window)input->dev->window;
402 ev->timestamp = libinput_event_pointer_get_time(event); 402 if (event) ev->timestamp = libinput_event_pointer_get_time(event);
403 ev->same_screen = 1; 403 ev->same_screen = 1;
404 404
405 _device_modifiers_update(edev); 405 _device_modifiers_update(edev);
@@ -424,6 +424,12 @@ _device_pointer_motion(Ecore_Drm_Evdev *edev, struct libinput_event_pointer *eve
424 ecore_event_add(ECORE_EVENT_MOUSE_MOVE, ev, NULL, NULL); 424 ecore_event_add(ECORE_EVENT_MOUSE_MOVE, ev, NULL, NULL);
425} 425}
426 426
427void
428_ecore_drm_pointer_motion_post(Ecore_Drm_Evdev *edev)
429{
430 _device_pointer_motion(edev, NULL);
431}
432
427static void 433static void
428_device_handle_pointer_motion(struct libinput_device *device, struct libinput_event_pointer *event) 434_device_handle_pointer_motion(struct libinput_device *device, struct libinput_event_pointer *event)
429{ 435{