summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2013-08-26 21:05:09 +0200
committerBoris Faure <billiob@gmail.com>2013-08-26 21:05:09 +0200
commitd63629ccbf828e53d13ee29eaf5d50e19d24d768 (patch)
tree84dfbdd96e067188d5eab31535bf3e283521fc50
parent9d000c7c1dfa63fa65bc1b25468bd81f45f47708 (diff)
fix 58ec67bfa about removing shadow variables
-rw-r--r--src/bin/termio.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/bin/termio.c b/src/bin/termio.c
index b9cfb6e..b6e343f 100644
--- a/src/bin/termio.c
+++ b/src/bin/termio.c
@@ -468,14 +468,13 @@ _update_link(Evas_Object *obj, Termio *sd,
468 { 468 {
469 if ((sd->link.string[0] == '/') || (link_is_url(sd->link.string))) 469 if ((sd->link.string[0] == '/') || (link_is_url(sd->link.string)))
470 { 470 {
471 Evas_Coord _x = ox, _y = oy;
471 Ecore_X_Window xwin; 472 Ecore_X_Window xwin;
472 473
473 evas_object_geometry_get(obj, &ox, &oy, NULL, NULL); 474 _x += sd->mouse.cx * sd->font.chw;
474 475 _y += sd->mouse.cy * sd->font.chh;
475 ox += sd->mouse.cx * sd->font.chw;
476 oy += sd->mouse.cy * sd->font.chh;
477 xwin = elm_win_xwindow_get(sd->win); 476 xwin = elm_win_xwindow_get(sd->win);
478 ty_dbus_link_mousein(xwin, sd->link.string, ox, oy); 477 ty_dbus_link_mousein(xwin, sd->link.string, _x, _y);
479 } 478 }
480 for (y = sd->link.y1; y <= sd->link.y2; y++) 479 for (y = sd->link.y1; y <= sd->link.y2; y++)
481 { 480 {