out coords are -1
this fixes some other cases of links not disappearing on mouse out fixing selection will come later
This commit is contained in:
parent
6ea8622ecc
commit
36ba3bf3ed
|
@ -2250,17 +2250,17 @@ _smart_xy_to_cursor(Evas_Object *obj, Evas_Coord x, Evas_Coord y, int *cx, int *
|
||||||
sd = evas_object_smart_data_get(obj);
|
sd = evas_object_smart_data_get(obj);
|
||||||
if (!sd)
|
if (!sd)
|
||||||
{
|
{
|
||||||
*cx = 0;
|
*cx = -1;
|
||||||
*cy = 0;
|
*cy = -1;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
evas_object_geometry_get(obj, &ox, &oy, NULL, NULL);
|
evas_object_geometry_get(obj, &ox, &oy, NULL, NULL);
|
||||||
*cx = (x - ox) / sd->font.chw;
|
*cx = (x - ox) / sd->font.chw;
|
||||||
*cy = (y - oy) / sd->font.chh;
|
*cy = (y - oy) / sd->font.chh;
|
||||||
if (*cx < 0) *cx = 0;
|
if (*cx < 0) *cx = -1;
|
||||||
else if (*cx >= sd->grid.w) *cx = sd->grid.w - 1;
|
else if (*cx >= sd->grid.w) *cx = -1;
|
||||||
if (*cy < 0) *cy = 0;
|
if (*cy < 0) *cy = 0;
|
||||||
else if (*cy >= sd->grid.h) *cy = sd->grid.h - 1;
|
else if (*cy >= sd->grid.h) *cy = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in New Issue