From: Doyoun Kang Date: Fri, 28 Apr 2023 06:36:01 +0000 (+0900) Subject: e_comp_object: modify e_comp_intercept_resize X-Git-Tag: accepted/tizen/7.0/unified/20230505.170237~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8030d2bb1ec77ef564b3e4e7c9850d561c0c6a28;p=platform%2Fupstream%2Fenlightenment.git e_comp_object: modify e_comp_intercept_resize When e calls evas_object_resize, then _e_comp_intercept_resize is called. In this callback function, if the window is not ready to be resized for various reasons (such as not yet visible), we should call e_client_size_set to update ec's size only if the current ec's size and new size are different. We don't check the maximize state of window because the window size may change depending on the maximize type. Change-Id: I536f185ccfd5edfe1d8aeff7917b8cbaaea0cc07 --- diff --git a/src/bin/e_comp_object.c b/src/bin/e_comp_object.c index b40f56d990..21a025184d 100644 --- a/src/bin/e_comp_object.c +++ b/src/bin/e_comp_object.c @@ -1741,7 +1741,7 @@ _e_comp_intercept_resize(void *data, Evas_Object *obj, int w, int h) if (cw->ec->new_client || (!cw->ec->visible) || (!cw->effect_obj)) { /* do nothing until client idler loops */ - if (!cw->ec->maximized && (cw->ec->w != w || cw->ec->h != h)) + if ((cw->ec->w != w) || (cw->ec->h != h)) { e_client_size_set(cw->ec, w, h); cw->ec->changes.size = 1;