do not adjust unplaced transient client position on parent move/resize

this breaks placement
This commit is contained in:
Mike Blumenkrantz 2017-04-07 16:07:25 -04:00
parent 6a28856086
commit a7cfbcd101
1 changed files with 6 additions and 3 deletions

View File

@ -1570,9 +1570,10 @@ _e_client_cb_evas_move(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UN
EINA_LIST_FREE(list, child)
{
evas_object_move(child->frame,
child->x + x - ec->pre_cb.x,
child->y + y - ec->pre_cb.y);
if (child->placed)
evas_object_move(child->frame,
child->x + x - ec->pre_cb.x,
child->y + y - ec->pre_cb.y);
}
}
}
@ -1611,6 +1612,8 @@ _e_client_cb_evas_resize(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_
{
Evas_Coord nx, ny, nw, nh;
if (!child->placed) continue;
if ((ec->pre_cb.w > 0) && (ec->pre_cb.h > 0))
{
nx = x + (((child->x - x) * w) / ec->pre_cb.w);