use frame geometry in win resize trap to get accurate sizes

ref T1905
This commit is contained in:
Mike Blumenkrantz 2014-12-29 17:25:43 -05:00
parent 5f1a0b4dcd
commit 521a7f071e
1 changed files with 2 additions and 2 deletions

View File

@ -152,9 +152,9 @@ _e_elm_win_trap_resize(void *data, Evas_Object *o __UNUSED__, int w, int h)
Elm_Win_Trap_Ctx *ctx = data;
EINA_SAFETY_ON_NULL_RETURN_VAL(ctx, EINA_TRUE);
if (!ctx->client) return EINA_TRUE;
e_comp_object_frame_wh_adjust(ctx->client->frame, w, h, &w, &h);
e_client_resize_limit(ctx->client, &w, &h);
if ((ctx->client->client.w != w) || (ctx->client->client.h != h))
e_client_util_resize_without_frame(ctx->client, w, h);
evas_object_resize(ctx->client->frame, w, h);
return EINA_TRUE;
}