From: Doyoun Kang Date: Sat, 6 Apr 2024 01:43:47 +0000 (+0900) Subject: ecore_wl2: modify code to set the saved size in ecore_wl2_window_commit X-Git-Tag: accepted/tizen/unified/20240409.135602^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1fc3dd0d3f748a7219c9cdd7d2b06754c34d4df0;p=platform%2Fupstream%2Fefl.git ecore_wl2: modify code to set the saved size in ecore_wl2_window_commit 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 --- diff --git a/src/lib/ecore_wl2/ecore_wl2_window.c b/src/lib/ecore_wl2/ecore_wl2_window.c index 2d53cea..ddc7356 100644 --- a/src/lib/ecore_wl2/ecore_wl2_window.c +++ b/src/lib/ecore_wl2/ecore_wl2_window.c @@ -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; + } } // }