billiob pushed a commit to branch master.
commit 795594e9cb5ae781956287229b94a055fa551198
Author: Boris Faure <[email protected]>
Date: Sun Jun 16 00:17:52 2013 +0200
dbus-link: use real coordinates
---
src/bin/termio.c | 24 ++++++++++++++++++------
1 file changed, 18 insertions(+), 6 deletions(-)
diff --git a/src/bin/termio.c b/src/bin/termio.c
index 9e87515..aff56c9 100644
--- a/src/bin/termio.c
+++ b/src/bin/termio.c
@@ -532,9 +532,15 @@ _smart_mouseover_apply(Evas_Object *obj)
{
if (link_is_url(sd->link.string))
{
- ty_dbus_link_mouseout(sd->link.string,
- sd->mouse.cx,
- sd->mouse.cy);
+ Evas_Coord ox, oy;
+ int x, y;
+
+ 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);
sd->link.string = NULL;
@@ -554,9 +560,15 @@ _smart_mouseover_apply(Evas_Object *obj)
if ((!same_link) && (link_is_url(s)))
{
- ty_dbus_link_mousein(s,
- sd->mouse.cx,
- sd->mouse.cy);
+ Evas_Coord ox, oy;
+ int x, y;
+
+ 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) &&
--
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev