forked from enlightenment/efl
canvas: Fix event framespace adjustment
Complements fix in r75545 SVN revision: 75555
This commit is contained in:
parent
5070bbdf60
commit
bacdd1ae11
|
@ -23,17 +23,15 @@ _evas_event_havemap_adjust(Evas_Object *obj, Evas_Coord *x, Evas_Coord *y, Eina_
|
||||||
static void
|
static void
|
||||||
_evas_event_framespace_adjust(Evas_Object *obj, Evas_Coord *x, Evas_Coord *y)
|
_evas_event_framespace_adjust(Evas_Object *obj, Evas_Coord *x, Evas_Coord *y)
|
||||||
{
|
{
|
||||||
if (!obj->is_frame)
|
if (obj->is_frame) return;
|
||||||
{
|
|
||||||
if (((!obj->smart.parent) && (obj->smart.smart)) ||
|
|
||||||
((obj->smart.parent) && (!obj->smart.smart)))
|
|
||||||
{
|
|
||||||
Evas *evas;
|
|
||||||
|
|
||||||
evas = obj->layer->evas;
|
if ((!obj->smart.parent) && (obj->smart.smart))
|
||||||
if (x) *x -= evas->framespace.x;
|
{
|
||||||
if (y) *y -= evas->framespace.y;
|
Evas *evas;
|
||||||
}
|
|
||||||
|
evas = obj->layer->evas;
|
||||||
|
if (x) *x -= evas->framespace.x;
|
||||||
|
if (y) *y -= evas->framespace.y;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue