e_comp_object: modify e_comp_intercept_resize 17/292217/1
authorDoyoun Kang <doyoun.kang@samsung.com>
Fri, 28 Apr 2023 06:36:01 +0000 (15:36 +0900)
committerDoyoun Kang <doyoun.kang@samsung.com>
Tue, 2 May 2023 03:13:33 +0000 (12:13 +0900)
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

src/bin/e_comp_object.c

index b40f56d990f692be54bc752a645809c5a21dce43..21a025184d6ea163d38ed69fcef6eeb0cdede501 100644 (file)
@@ -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;