From a8bb3ec5cedafc6aeecb8be0baed84313bcbcede Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Mon, 8 Jul 2013 11:02:58 +0100 Subject: [PATCH] Add common wayland function to get the pointer xy from wayland Signed-off-by: Chris Michael --- .../engines/wayland/ecore_evas_wayland_common.c | 8 ++++++++ .../engines/wayland/ecore_evas_wayland_private.h | 2 ++ 2 files changed, 10 insertions(+) diff --git a/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c b/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c index 4a4dee6425..b800b66862 100644 --- a/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c +++ b/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c @@ -832,6 +832,14 @@ _ecore_evas_wl_common_frame_border_size_get(Evas_Object *obj, int *fx, int *fy, if (fh) *fh = sd->border_size[0] + sd->border_size[1]; } +void +_ecore_evas_wl_common_pointer_xy_get(Ecore_Evas *ee EINA_UNUSED, Evas_Coord *x, Evas_Coord *y) +{ + LOGFN(__FILE__, __LINE__, __FUNCTION__); + + ecore_wl_pointer_xy_get(x, y); +} + void _ecore_evas_wl_common_raise(Ecore_Evas *ee) { diff --git a/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_private.h b/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_private.h index 59fa9935f6..d25197c41d 100644 --- a/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_private.h +++ b/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_private.h @@ -77,6 +77,8 @@ void _ecore_evas_wl_common_borderless_set(Ecore_Evas *ee, int borderless); Evas_Object * _ecore_evas_wl_common_frame_add(Evas *evas); void _ecore_evas_wl_common_frame_border_size_set(Evas_Object *obj, int fx, int fy, int fw, int fh); +void _ecore_evas_wl_common_pointer_xy_get(Ecore_Evas *ee, Evas_Coord *x, Evas_Coord *y); + #ifdef BUILD_ECORE_EVAS_WAYLAND_SHM void _ecore_evas_wayland_shm_resize(Ecore_Evas *ee, int location); void _ecore_evas_wayland_shm_transparent_do(Ecore_Evas *ee, int transparent);