evas/wayland: Take framespace offsets into account on pointer_xy_get().

Applications using these functions should not know of any offset. This
patch makes the canvas pointer position to be returned exactly the same
as on X11 backends.
This commit is contained in:
Rafael Antognolli 2013-03-27 17:18:09 -03:00
parent f5f589429e
commit c7cdcf4e0e
1 changed files with 4 additions and 4 deletions

View File

@ -732,8 +732,8 @@ _canvas_pointer_output_xy_get(Eo *eo_e EINA_UNUSED, void *_pd, va_list *list)
int *x = va_arg(*list, int *);
int *y = va_arg(*list, int *);
const Evas_Public_Data *e = _pd;
if (x) *x = e->pointer.x;
if (y) *y = e->pointer.y;
if (x) *x = e->pointer.x - e->framespace.x;
if (y) *y = e->pointer.y - e->framespace.y;
}
EAPI void
@ -754,8 +754,8 @@ _canvas_pointer_canvas_xy_get(Eo *eo_e EINA_UNUSED, void *_pd, va_list *list)
Evas_Coord *y = va_arg(*list, Evas_Coord *);
const Evas_Public_Data *e = _pd;
if (x) *x = e->pointer.x;
if (y) *y = e->pointer.y;
if (x) *x = e->pointer.x - e->framespace.x;
if (y) *y = e->pointer.y - e->framespace.y;
}
EAPI int