fix a minor event bug with retaining the wrong coordinates fomr the last

event. never saw it because i was always feedingin mosue move events too


SVN revision: 3743
This commit is contained in:
Carsten Haitzler 2000-10-26 22:47:33 +00:00
parent 90493cb200
commit 2e06735388
1 changed files with 5 additions and 3 deletions

View File

@ -37,7 +37,9 @@ _evas_highest_object_at_point(Evas e, int x, int y)
if ((ob->current.visible) && (!ob->pass_events) && (!ob->delete_me))
{
if (_evas_point_in_object(e, ob, x, y))
o = ob;
{
o = ob;
}
}
}
}
@ -80,7 +82,7 @@ evas_event_button_down(Evas e, int x, int y, int b)
if ((b < 1) || (b > 32)) return;
if (!e->mouse.buttons)
{
o = _evas_highest_object_at_point(e, e->mouse.x, e->mouse.y);
o = _evas_highest_object_at_point(e, x, y);
e->mouse.button_object = o;
}
e->mouse.buttons |= (1 << (b - 1));
@ -109,7 +111,7 @@ evas_event_button_up(Evas e, int x, int y, int b)
if ((e->mouse.button_object) &&
(e->mouse.object != e->mouse.button_object))
_evas_callback_call(e, e->mouse.button_object, CALLBACK_MOUSE_OUT,
e->mouse.buttons, e->mouse.x, e->mouse.y);
e->mouse.buttons, x, y);
e->mouse.button_object = NULL;
}
}