Manual place relative to zone.

SVN revision: 16962
This commit is contained in:
sebastid 2005-09-26 14:31:35 +00:00 committed by sebastid
parent 414160668a
commit e95ad85d54
3 changed files with 5 additions and 5 deletions

View File

@ -177,7 +177,7 @@ _e_app_cb_scan_cache_timer(void *data)
char buf[4096];
E_App_Cache *ac;
int is_dir = 0;
sc = data;
s = ecore_list_next(sc->files);
if (!s)

View File

@ -5333,8 +5333,8 @@ _e_border_eval(E_Border *bd)
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,

View File

@ -488,8 +488,8 @@ e_place_zone_manual(E_Zone *zone, int w, int h, int *rx, int *ry)
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;
}