another revision for client geometry resets: take new geometry instead of ignoring it

This commit is contained in:
Mike Blumenkrantz 2014-02-14 13:43:15 -05:00
parent 1c82215eaa
commit 494e6bc5ee
1 changed files with 4 additions and 2 deletions

View File

@ -692,8 +692,9 @@ _e_comp_intercept_move(void *data, Evas_Object *obj, int x, int y)
{
if ((cw->ec->x != x) || (cw->ec->y != y))
{
cw->ec->post_move = 0;
cw->ec->x = x, cw->ec->y = y;
cw->ec->client.x = x + cw->client_inset.l;
cw->ec->client.y = y + cw->client_inset.t;
}
return;
}
@ -750,8 +751,9 @@ _e_comp_intercept_resize(void *data, Evas_Object *obj, int w, int h)
{
if ((cw->ec->w != w) || (cw->ec->h != h))
{
cw->ec->post_resize = 0;
cw->ec->w = w, cw->ec->h = h;
cw->ec->client.w = w - cw->client_inset.l - cw->client_inset.r;
cw->ec->client.h = h - cw->client_inset.t - cw->client_inset.b;
}
return;
}