antognolli pushed a commit to branch master.

commit 41d00df3d760b22c737779e4c1ac104121a85794
Author: Rafael Antognolli <[email protected]>
Date:   Tue Mar 26 13:49:18 2013 -0300

    evas/wayland: Remove wrong check from framespace position_get.
    
    This check makes no sense, since objects can be on outside of the
    screen, with negative position, but they still need to be adjusted by
    the framespace offset.
---
 src/lib/evas/canvas/evas_object_main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lib/evas/canvas/evas_object_main.c 
b/src/lib/evas/canvas/evas_object_main.c
index 6009244..0689ffd 100644
--- a/src/lib/evas/canvas/evas_object_main.c
+++ b/src/lib/evas/canvas/evas_object_main.c
@@ -1024,8 +1024,8 @@ _position_get(Eo *eo_obj EINA_UNUSED, void *_pd, va_list 
*list)
 
    if ((!obj->is_frame) && (eo_obj != evas->framespace.clip))
      {
-        if (nx > 0) nx -= evas->framespace.x;
-        if (ny > 0) ny -= evas->framespace.y;
+        nx -= evas->framespace.x;
+        ny -= evas->framespace.y;
      }
 
    if (x) *x = nx;

-- 

------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html

Reply via email to