summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunsuChoi <jsuya.choi@samsung.com>2018-10-11 20:28:13 +0900
committerWooHyun Jung <wh0705.jung@samsung.com>2018-10-11 20:28:13 +0900
commit93ee5f9d53558f9f837220e81a8c35d2475a022f (patch)
treee9d471a8b1e16bc3dd2ec665071935ae5381e00b
parentb2c26c1875bc78a08183aa76b179b6e3b62d01c9 (diff)
efl_ui_win: Move force resize code on first draw
Summary: In D6165, there was a modification that forced resize_job to be called using sd-> deferred_resize_job. Even if we set true in sd-> deferred_resize_job, it will be changed to false by calling other function to be called. (sd->deferred_resize_job = EINA_TRUE; -> _elm_win_resize_objects_eval -> _elm_win_resize_job -> sd->deferred_resize_job = EINA_FALSE;) Eventually _elm_win_frame_obj_update is not called. There is a case where _elm_win_frame_obj_update can not called in tizen. For this reason, make sure to call resize_job when first drawing based on D6165. Test Plan: N/A Reviewers: eagleeye, zmike, woohyun Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7156
-rw-r--r--src/lib/elementary/efl_ui_win.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/lib/elementary/efl_ui_win.c b/src/lib/elementary/efl_ui_win.c
index 38aa6d877b..20a70cd00a 100644
--- a/src/lib/elementary/efl_ui_win.c
+++ b/src/lib/elementary/efl_ui_win.c
@@ -1008,12 +1008,6 @@ _elm_win_pre_render(Ecore_Evas *ee)
1008 _elm_win_frame_style_update(sd, 1, 1); 1008 _elm_win_frame_style_update(sd, 1, 1);
1009 ELM_WIN_DATA_ALIVE_CHECK(obj, sd); 1009 ELM_WIN_DATA_ALIVE_CHECK(obj, sd);
1010 1010
1011 /* set this to handle ecore-evas engine code which incorrectly
1012 * assumes that a client resize call is the same as a server resize
1013 * event, or which has no server event
1014 */
1015 sd->deferred_resize_job = EINA_TRUE;
1016
1017 if (sd->frame_obj) 1011 if (sd->frame_obj)
1018 { 1012 {
1019 /* force initial sizing on frame to enable sizing of content */ 1013 /* force initial sizing on frame to enable sizing of content */
@@ -1031,6 +1025,11 @@ _elm_win_pre_render(Ecore_Evas *ee)
1031 ecore_x_window_shape_input_rectangle_set(sd->x.xwin, 0, 0, 0, 0); 1025 ecore_x_window_shape_input_rectangle_set(sd->x.xwin, 0, 0, 0, 0);
1032#endif 1026#endif
1033 sd->first_draw = EINA_TRUE; 1027 sd->first_draw = EINA_TRUE;
1028 /* set this to handle ecore-evas engine code which incorrectly
1029 * assumes that a client resize call is the same as a server resize
1030 * event, or which has no server event
1031 */
1032 sd->deferred_resize_job = EINA_TRUE;
1034 } 1033 }
1035 if (sd->deferred_resize_job) 1034 if (sd->deferred_resize_job)
1036 { 1035 {