ecore_wl2: modify code to set the saved size in ecore_wl2_window_commit 89/309289/1 accepted/tizen/unified/20240409.135602 accepted/tizen/unified/20240409.155905 accepted/tizen/unified/x/20240411.011821
authorDoyoun Kang <doyoun.kang@samsung.com>
Sat, 6 Apr 2024 01:43:47 +0000 (10:43 +0900)
committerDoyoun Kang <doyoun.kang@samsung.com>
Mon, 8 Apr 2024 08:14:43 +0000 (17:14 +0900)
We modified code to set the saved size only when the fullscreen and maximize states
of the def_config and set_config are both false.

@tizen_only

Change-Id: Id37dd65b00772f829fb7a2391800f11cace3ab55

src/lib/ecore_wl2/ecore_wl2_window.c

index 2d53cea..ddc7356 100644 (file)
@@ -3956,8 +3956,11 @@ ecore_wl2_window_commit(Ecore_Wl2_Window *window, Eina_Bool flush)
              // TIZEN_ONLY(20220421) : update window's saved size only un-fullscreen and unmaximize state
              if (!window->set_config.fullscreen && !window->set_config.maximized)
                {
-                  window->saved.w = window->set_config.geometry.w;
-                  window->saved.h = window->set_config.geometry.h;
+                  if (!window->def_config.fullscreen && !window->def_config.maximized)
+                    {
+                       window->saved.w = window->set_config.geometry.w;
+                       window->saved.h = window->set_config.geometry.h;
+                    }
                }
              //
           }