another revision for client geometry resets: take new geometry instead of ignoring it
This commit is contained in:
parent
1c82215eaa
commit
494e6bc5ee
|
@ -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))
|
if ((cw->ec->x != x) || (cw->ec->y != y))
|
||||||
{
|
{
|
||||||
cw->ec->post_move = 0;
|
|
||||||
cw->ec->x = x, cw->ec->y = y;
|
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;
|
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))
|
if ((cw->ec->w != w) || (cw->ec->h != h))
|
||||||
{
|
{
|
||||||
cw->ec->post_resize = 0;
|
|
||||||
cw->ec->w = w, cw->ec->h = h;
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue