e_client: modify return x and y values of e_client_geometry_get() 91/284491/1
authorDoyoun Kang <doyoun.kang@samsung.com>
Thu, 17 Nov 2022 04:42:00 +0000 (13:42 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Fri, 18 Nov 2022 03:09:09 +0000 (12:09 +0900)
If the ec->frame's size are 0x0, it means that the geometry of ec->frame is invalid.
In this case, e_client_geometry_get() returned the size value using ec's size itself,
but position value returned by invalid value.

This patch changes the returned geometry of e_client_geometry_get() to ec's geometry
itself in this case.

Change-Id: Ifb465d4d78fb02a0f207b46fd939f03e6433bf4b

src/bin/e_client.c

index c7e6368..a5beb78 100644 (file)
@@ -5365,13 +5365,8 @@ e_client_geometry_get(E_Client *ec, int *x, int *y, int *w, int *h)
                    */
                   gw = ec->w;
                   gh = ec->h;
-
-                  if ((ec->changes.pos) &&
-                      ((gx != ec->x) || (gy != ec->y)))
-                    {
-                       gx = ec->x;
-                       gy = ec->y;
-                    }
+                  gx = ec->x;
+                  gy = ec->y;
                }
           }
         else