summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2017-07-21 16:20:04 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2017-07-28 16:21:31 -0400
commitb57cfe847661c07ae04fcf8c4c8de7673cdb46a6 (patch)
treeb75f2b7ff6cca609a50fdc1e70f124f4f34faf85
parentd28ff92e6be7c958b92b347443c180e0717a3a37 (diff)
downloadenlightenment-b57cfe847661c07ae04fcf8c4c8de7673cdb46a6.tar.gz
rework internal win centering
call resize before attempting to center to ensure accurate positioning
-rw-r--r--src/bin/e_win.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/bin/e_win.c b/src/bin/e_win.c
index 5ae728353d..de8093e6ce 100644
--- a/src/bin/e_win.c
+++ b/src/bin/e_win.c
@@ -166,13 +166,13 @@ _e_elm_win_trap_show(void *data, Evas_Object *o)
ctx->client->borderless |= borderless;
e_comp_object_frame_xy_adjust(ctx->client->frame, ctx->client->client.x, ctx->client->client.y, &ctx->client->x, &ctx->client->y);
e_comp_object_frame_wh_adjust(ctx->client->frame, ctx->client->client.w, ctx->client->client.h, &ctx->client->w, &ctx->client->h);
+ if (ctx->sized) evas_object_resize(o, ctx->w, ctx->h);
+ if (ctx->placed) evas_object_move(o, ctx->x, ctx->y);
if (ctx->centered)
{
- e_comp_object_util_center(ctx->client->frame);
- ctx->centered =0;
+ e_comp_object_util_center(o);
+ ctx->centered = 0;
}
- else if (ctx->placed) evas_object_move(o, ctx->x, ctx->y);
- if (ctx->sized) evas_object_resize(o, ctx->w, ctx->h);
return EINA_TRUE;
}