From 7312a63ef67e3ffc04fa90491c3743494bef8ae3 Mon Sep 17 00:00:00 2001 From: sebastid Date: Mon, 26 Sep 2005 10:07:48 +0000 Subject: [PATCH] Use placement func to find x/y pos. SVN revision: 16955 --- src/bin/e_border.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/bin/e_border.c b/src/bin/e_border.c index dd43e3f17..29ab5cbef 100644 --- a/src/bin/e_border.c +++ b/src/bin/e_border.c @@ -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;