evas/wayland: Remove wrong check from framespace position_get.
authorRafael Antognolli <rafael.antognolli@linux.intel.com>
Tue, 26 Mar 2013 16:49:18 +0000 (13:49 -0300)
committerRafael Antognolli <rafael.antognolli@linux.intel.com>
Tue, 2 Apr 2013 17:40:00 +0000 (14:40 -0300)
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

index 6009244..0689ffd 100644 (file)
@@ -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;