Enlightenment CVS committal

Author  : sebastid
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_place.c 


Log Message:
Place cursor relative to zone.

===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_place.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -3 -r1.14 -r1.15
--- e_place.c   26 Sep 2005 14:31:35 -0000      1.14
+++ e_place.c   26 Sep 2005 14:46:29 -0000      1.15
@@ -459,8 +459,8 @@
    E_OBJECT_CHECK(zone);
 
    ecore_x_pointer_xy_get(zone->container->win, &cursor_x, &cursor_y);
-   *rx = cursor_x - ((w - x) >> 1);
-   *ry = cursor_y - (it >> 1);
+   *rx = (cursor_x - zone->x) - (w >> 1);
+   *ry = (cursor_y - zone->y) - (it >> 1);
 
    if (*rx < zone->x) 
      *rx = zone->x;




-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to