Place cursor relative to zone.

SVN revision: 16964
This commit is contained in:
sebastid 2005-09-26 14:46:29 +00:00 committed by sebastid
parent e95ad85d54
commit 225fea7595
1 changed files with 2 additions and 2 deletions

View File

@ -459,8 +459,8 @@ e_place_zone_cursor(E_Zone *zone, int x, int y, int w, int h, int it, int *rx, i
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;