summaryrefslogtreecommitdiff
path: root/src/modules/ecore_evas/engines/drm
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2015-03-04 11:48:36 -0500
committerChris Michael <cp.michael@samsung.com>2015-03-04 11:49:44 -0500
commitda80ee8cc2ac17a8d7a119bf6ea5afaea5e9418c (patch)
tree51d40e28fe398f8d26c62b38d944fc8dd2d47e88 /src/modules/ecore_evas/engines/drm
parent49beaeacf474d3743a39da75488be9befa4a09b3 (diff)
ecore-evas-drm: Fix function call to ecore_evas_pointer_xy_get for drm
engine Summary: This changes the ecore_evas_pointer_xy_get function call (on drm engine) to use the new ecore_drm_device_pointer_xy_get so we can center mouse pointer on an output at startup. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src/modules/ecore_evas/engines/drm')
-rw-r--r--src/modules/ecore_evas/engines/drm/ecore_evas_drm.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c b/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c
index 3de46684ba..a04797d62c 100644
--- a/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c
+++ b/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c
@@ -792,7 +792,7 @@ _ecore_evas_drm_object_cursor_set(Ecore_Evas *ee, Evas_Object *obj, int layer, i
792 ee->prop.cursor.hot.x = hot_x; 792 ee->prop.cursor.hot.x = hot_x;
793 ee->prop.cursor.hot.y = hot_y; 793 ee->prop.cursor.hot.y = hot_y;
794 794
795 evas_pointer_output_xy_get(ee->evas, &x, &y); 795 ecore_evas_pointer_xy_get(ee, &x, &y);
796 796
797 if (obj != old) 797 if (obj != old)
798 { 798 {
@@ -1033,9 +1033,8 @@ _ecore_evas_drm_screen_geometry_get(const Ecore_Evas *ee EINA_UNUSED, int *x, in
1033} 1033}
1034 1034
1035static void 1035static void
1036_ecore_evas_drm_pointer_xy_get(const Ecore_Evas *ee, Evas_Coord *x, Evas_Coord *y) 1036_ecore_evas_drm_pointer_xy_get(const Ecore_Evas *ee EINA_UNUSED, Evas_Coord *x, Evas_Coord *y)
1037{ 1037{
1038 /* FIXME: This should probably be using an ecore_drm_input function to 1038 /* get pointer position from input */
1039 * return the current mouse position */ 1039 ecore_drm_device_pointer_xy_get(dev, x, y);
1040 evas_pointer_output_xy_get(ee->evas, x, y);
1041} 1040}