avoid setting incorrect geometry during new_client frame calc

in the case where a client has no geometry set, attempting to update
the client's geometry during frame recalc will guarantee that wrong
geometry is set, resulting in a bad first frame
This commit is contained in:
Mike Blumenkrantz 2015-11-24 17:28:08 -05:00
parent 38411a8624
commit c685d799c1
1 changed files with 1 additions and 0 deletions

View File

@ -1615,6 +1615,7 @@ _e_comp_smart_cb_frame_recalc(void *data, Evas_Object *obj, void *event_info EIN
evas_object_resize(cw->ec->frame, cw->ec->zone->w, cw->ec->zone->h);
else if (cw->ec->new_client)
{
if ((cw->ec->w < 1) || (cw->ec->h < 1)) return;
e_comp_object_frame_wh_adjust(obj, pw, ph, &w, &h);
evas_object_resize(cw->ec->frame, w, h);
}