ecore_wl2_window: update window's saved size in xdg_surface_configure callback 00/244600/2
authorDoyoun Kang <doyoun.kang@samsung.com>
Tue, 22 Sep 2020 08:01:32 +0000 (17:01 +0900)
committerDoyoun Kang <doyoun.kang@samsung.com>
Tue, 22 Sep 2020 08:12:54 +0000 (17:12 +0900)
There was a bug that the window was resized to old size when the window's state changed
to unmaximize and unfullscreen.
This patch updates window's saved size when the window which state is both unmaximize
and unfullscreen.

@tizen_fix

Change-Id: I63decf2113f26f2cfb8378c2a29ff39455ffcf36
Signed-off-by: Doyoun Kang <doyoun.kang@samsung.com>
src/lib/ecore_wl2/ecore_wl2_window.c
src/lib/ecore_wl2/window_v6.x

index 4ef3a4d..7c99855 100644 (file)
@@ -292,6 +292,17 @@ _xdg_surface_cb_configure(void *data, struct xdg_surface *xdg_surface EINA_UNUSE
    if (window->pending.configure && window->updating)
      ERR("Window shouldn't be rendering before initial configure");
 
+   // TIZEN_ONLY(20200922) : update window's saved size
+   if (!window->def_config.fullscreen && !window->def_config.maximized)
+     {
+        if (window->pending.geom)
+          {
+             window->saved.w = window->set_config.geometry.w;
+             window->saved.h = window->set_config.geometry.h;
+          }
+     }
+   //
+
    if (!window->updating)
      _ecore_wl2_window_configure_send(window);
 
index b039543..ca2c68a 100644 (file)
@@ -15,6 +15,17 @@ _zxdg_surface_cb_configure(void *data, struct zxdg_surface_v6 *zxdg_surface EINA
    if (window->pending.configure && window->updating)
      ERR("Window shouldn't be rendering before initial configure");
 
+   // TIZEN_ONLY(20200922) : update window's saved size
+   if (!window->def_config.fullscreen && !window->def_config.maximized)
+     {
+        if (window->pending.geom)
+          {
+             window->saved.w = window->set_config.geometry.w;
+             window->saved.h = window->set_config.geometry.h;
+          }
+     }
+   //
+
    if (!window->updating)
      _ecore_wl2_window_configure_send(window);