dbus-link: use real coordinates

This commit is contained in:
Boris Faure 2013-06-16 00:17:52 +02:00
parent 22be3b7609
commit 795594e9cb
1 changed files with 18 additions and 6 deletions

View File

@ -532,9 +532,15 @@ _smart_mouseover_apply(Evas_Object *obj)
{ {
if (link_is_url(sd->link.string)) if (link_is_url(sd->link.string))
{ {
ty_dbus_link_mouseout(sd->link.string, Evas_Coord ox, oy;
sd->mouse.cx, int x, y;
sd->mouse.cy);
evas_object_geometry_get(obj, &ox, &oy, NULL, NULL);
elm_win_screen_position_get(sd->win, &x, &y);
x += ox + sd->mouse.cx * sd->font.chw;
y += ox + sd->mouse.cy * sd->font.chh;
ty_dbus_link_mouseout(sd->link.string, x, y);
} }
free(sd->link.string); free(sd->link.string);
sd->link.string = NULL; sd->link.string = NULL;
@ -554,9 +560,15 @@ _smart_mouseover_apply(Evas_Object *obj)
if ((!same_link) && (link_is_url(s))) if ((!same_link) && (link_is_url(s)))
{ {
ty_dbus_link_mousein(s, Evas_Coord ox, oy;
sd->mouse.cx, int x, y;
sd->mouse.cy);
evas_object_geometry_get(obj, &ox, &oy, NULL, NULL);
elm_win_screen_position_get(sd->win, &x, &y);
x += ox + sd->mouse.cx * sd->font.chw;
y += ox + sd->mouse.cy * sd->font.chh;
ty_dbus_link_mousein(s, x, y);
} }
if ((x1 == sd->link.x1) && (y1 == sd->link.y1) && if ((x1 == sd->link.x1) && (y1 == sd->link.y1) &&