summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2013-10-10 23:02:28 +0200
committerBoris Faure <billiob@gmail.com>2013-10-13 17:13:16 +0200
commit36ba3bf3ed3b9e44ba021f1e5bc45d906e8de038 (patch)
treec1b4a3aeaeaf10d79d248f77b91144762d6197a9
parent6ea8622ecc4bd6aa0287a7638a9f4a4190fafc38 (diff)
out coords are -1
this fixes some other cases of links not disappearing on mouse out fixing selection will come later
-rw-r--r--src/bin/termio.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/bin/termio.c b/src/bin/termio.c
index 8ab7027..fd5b62c 100644
--- a/src/bin/termio.c
+++ b/src/bin/termio.c
@@ -2250,17 +2250,17 @@ _smart_xy_to_cursor(Evas_Object *obj, Evas_Coord x, Evas_Coord y, int *cx, int *
2250 sd = evas_object_smart_data_get(obj); 2250 sd = evas_object_smart_data_get(obj);
2251 if (!sd) 2251 if (!sd)
2252 { 2252 {
2253 *cx = 0; 2253 *cx = -1;
2254 *cy = 0; 2254 *cy = -1;
2255 return; 2255 return;
2256 } 2256 }
2257 evas_object_geometry_get(obj, &ox, &oy, NULL, NULL); 2257 evas_object_geometry_get(obj, &ox, &oy, NULL, NULL);
2258 *cx = (x - ox) / sd->font.chw; 2258 *cx = (x - ox) / sd->font.chw;
2259 *cy = (y - oy) / sd->font.chh; 2259 *cy = (y - oy) / sd->font.chh;
2260 if (*cx < 0) *cx = 0; 2260 if (*cx < 0) *cx = -1;
2261 else if (*cx >= sd->grid.w) *cx = sd->grid.w - 1; 2261 else if (*cx >= sd->grid.w) *cx = -1;
2262 if (*cy < 0) *cy = 0; 2262 if (*cy < 0) *cy = 0;
2263 else if (*cy >= sd->grid.h) *cy = sd->grid.h - 1; 2263 else if (*cy >= sd->grid.h) *cy = -1;
2264} 2264}
2265 2265
2266static void 2266static void