Enlightenment CVS committal

Author  : sebastid
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_apps.c e_border.c e_place.c 


Log Message:
Manual place relative to zone.

===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_apps.c,v
retrieving revision 1.74
retrieving revision 1.75
diff -u -3 -r1.74 -r1.75
--- e_apps.c    26 Sep 2005 12:28:35 -0000      1.74
+++ e_apps.c    26 Sep 2005 14:31:35 -0000      1.75
@@ -177,7 +177,7 @@
    char buf[4096];
    E_App_Cache *ac;
    int is_dir = 0;
-   
+
    sc = data;
    s = ecore_list_next(sc->files);
    if (!s)
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_border.c,v
retrieving revision 1.422
retrieving revision 1.423
diff -u -3 -r1.422 -r1.423
--- e_border.c  26 Sep 2005 10:52:44 -0000      1.422
+++ e_border.c  26 Sep 2005 14:31:35 -0000      1.423
@@ -5333,8 +5333,8 @@
                  if (bd->cur_mouse_action)
                    {
                       ecore_x_pointer_xy_get(bd->zone->container->win, &x, &y);
-                      bd->x = x - (bd->w >> 1);
-                      bd->y = y - (bd->client_inset.t >> 1);
+                      bd->x = (x - bd->zone->x) - (bd->w >> 1);
+                      bd->y = (y - bd->zone->y) - (bd->client_inset.t >> 1);
                       bd->changed = 1;
                       bd->changes.pos = 1;
                       ecore_x_icccm_move_resize_send(bd->client.win,
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_place.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -3 -r1.13 -r1.14
--- e_place.c   26 Sep 2005 10:30:38 -0000      1.13
+++ e_place.c   26 Sep 2005 14:31:35 -0000      1.14
@@ -488,8 +488,8 @@
    E_OBJECT_CHECK_RETURN(zone, 0);
 
    ecore_x_pointer_xy_get(zone->container->win, &cursor_x, &cursor_y);
-   *rx = cursor_x - (w >> 1);
-   *ry = cursor_y - (h >> 1);
+   if (rx) *rx = (cursor_x - zone->x) - (w >> 1);
+   if (ry) *ry = (cursor_y - zone->y) - (h >> 1);
 
    return 1;
 }




-------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to