From efe5f9237795f05153bba3663cef74aa90f90956 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Wed, 23 May 2018 10:28:05 +0200 Subject: [PATCH] efl_ui_win: always force resize job on first pre-render Summary: ensure that a resize eval occurs after the frame edje has been thawed so that sizing will be correct in engines which either still have broken size handling (D6019) or have sub-optimal size handling (D6145) Reviewers: bu5hm4n, cedric Reviewed By: bu5hm4n Tags: #efl Differential Revision: https://phab.enlightenment.org/D6165 --- src/lib/elementary/efl_ui_win.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/lib/elementary/efl_ui_win.c b/src/lib/elementary/efl_ui_win.c index a2e0e62e44..d538af96ec 100644 --- a/src/lib/elementary/efl_ui_win.c +++ b/src/lib/elementary/efl_ui_win.c @@ -999,6 +999,12 @@ _elm_win_pre_render(Ecore_Evas *ee) _elm_win_frame_style_update(sd, 1, 1); ELM_WIN_DATA_ALIVE_CHECK(obj, sd); + /* set this to handle ecore-evas engine code which incorrectly + * assumes that a client resize call is the same as a server resize + * event, or which has no server event + */ + sd->deferred_resize_job = EINA_TRUE; + /* force initial sizing on frame to enable sizing of content */ edje_object_size_min_calc(sd->frame_obj, &mw, &mh); evas_object_resize(sd->frame_obj, mw, mh);