Enlightenment CVS committal

Author  : sebastid
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_border.c e_place.c 


Log Message:
border positions is relative to container, not zone

===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_border.c,v
retrieving revision 1.436
retrieving revision 1.437
diff -u -3 -r1.436 -r1.437
--- e_border.c  28 Sep 2005 19:53:42 -0000      1.436
+++ e_border.c  29 Sep 2005 12:48:32 -0000      1.437
@@ -5339,13 +5339,13 @@
             if (bd->cur_mouse_action)
               {
                  if ((!bd->cur_mouse_action->func.end_mouse) &&
-                       (!bd->cur_mouse_action->func.end))
+                     (!bd->cur_mouse_action->func.end))
                    bd->cur_mouse_action = NULL;
                  if (bd->cur_mouse_action)
                    {
                       ecore_x_pointer_xy_get(bd->zone->container->win, &x, &y);
-                      bd->x = (x - bd->zone->x) - (bd->w >> 1);
-                      bd->y = (y - bd->zone->y) - (bd->client_inset.t >> 1);
+                      bd->x = x - (bd->w >> 1);
+                      bd->y = 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.15
retrieving revision 1.16
diff -u -3 -r1.15 -r1.16
--- e_place.c   26 Sep 2005 14:46:29 -0000      1.15
+++ e_place.c   29 Sep 2005 12:48:32 -0000      1.16
@@ -459,8 +459,8 @@
    E_OBJECT_CHECK(zone);
 
    ecore_x_pointer_xy_get(zone->container->win, &cursor_x, &cursor_y);
-   *rx = (cursor_x - zone->x) - (w >> 1);
-   *ry = (cursor_y - zone->y) - (it >> 1);
+   *rx = cursor_x - (w >> 1);
+   *ry = cursor_y - (it >> 1);
 
    if (*rx < zone->x) 
      *rx = zone->x;
@@ -488,8 +488,8 @@
    E_OBJECT_CHECK_RETURN(zone, 0);
 
    ecore_x_pointer_xy_get(zone->container->win, &cursor_x, &cursor_y);
-   if (rx) *rx = (cursor_x - zone->x) - (w >> 1);
-   if (ry) *ry = (cursor_y - zone->y) - (h >> 1);
+   if (rx) *rx = cursor_x - (w >> 1);
+   if (ry) *ry = cursor_y - (h >> 1);
 
    return 1;
 }




-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to