e_comp_object: modify e_comp_intercept_resize 68/292168/1
authorDoyoun Kang <doyoun.kang@samsung.com>
Fri, 28 Apr 2023 06:36:01 +0000 (15:36 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Fri, 28 Apr 2023 07:01:50 +0000 (16:01 +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: Ib1b60c532f0f34b84e791b7d75b04e8f8c843713

src/bin/e_comp_object.c

index 332692e..382423e 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;