Use placement func to find x/y pos.

SVN revision: 16955
This commit is contained in:
sebastid 2005-09-26 10:07:48 +00:00 committed by sebastid
parent edfb84445a
commit 7312a63ef6
1 changed files with 2 additions and 4 deletions

View File

@ -5333,10 +5333,8 @@ _e_border_eval(E_Border *bd)
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->w / 2;
bd->y = y - bd->client_inset.t / 2;
e_place_zone_manual(bd->zone, bd->x, bd->w,
bd->client_inset.t, &bd->x, &bd->y);
bd->moveinfo.down.x = bd->x;
bd->moveinfo.down.y = bd->y;