antognolli pushed a commit to branch master.

commit a1914368a7244924206f362f018d62c89434ca49
Author: Rafael Antognolli <[email protected]>
Date:   Mon Apr 29 11:00:21 2013 -0300

    evas/framespace: Use more framespace offset on evas events.
    
    The framespace offset must be taken into account when searching the list
    of objects which received events, since the objects now have their
    original position.
---
 src/lib/evas/canvas/evas_events.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/lib/evas/canvas/evas_events.c 
b/src/lib/evas/canvas/evas_events.c
index 392a562..a1cc7ae 100644
--- a/src/lib/evas/canvas/evas_events.c
+++ b/src/lib/evas/canvas/evas_events.c
@@ -37,8 +37,6 @@ _evas_event_framespace_adjust(Evas_Object *eo_obj, Evas_Coord 
*x, Evas_Coord *y)
   Evas_Object_Protected_Data *obj = eo_data_get(eo_obj, EVAS_OBJ_CLASS);
   Evas_Public_Data *evas;
 
-  if (obj->is_frame) return;
-
   evas = obj->layer->evas;
   if (x) *x -= evas->framespace.x;
   if (y) *y -= evas->framespace.y;
@@ -883,6 +881,9 @@ evas_event_objects_event_list(Evas *eo_e, Evas_Object 
*stop, int x, int y)
    Eina_List *in = NULL;
 
    if ((!e->layers) || (e->is_frozen)) return NULL;
+
+   x -= e->framespace.x;
+   y -= e->framespace.y;
    EINA_INLIST_REVERSE_FOREACH((EINA_INLIST_GET(e->layers)), lay)
      {
         int no_rep = 0;

-- 

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr

Reply via email to