ecore_wl2_window: use set_config geometry. 13/259913/1
authorHosang Kim <hosang12.kim@samsung.com>
Mon, 28 Jan 2019 08:10:59 +0000 (17:10 +0900)
committerDoyoun Kang <doyoun.kang@samsung.com>
Wed, 16 Jun 2021 11:13:02 +0000 (20:13 +0900)
Sometimes _ecore_wl_window_cb_angle_change is called before
_zxdg_toplevel_cb_configure is called.
In this case def_config geometry is not yet updated,
therefore we use set_config geometry.

@tizen_only

Change-Id: I13eb16db6ef476ac45a886bfb3ce1c788369e8e3
Signed-off-by: Hosang Kim <hosang12.kim@samsung.com>
src/lib/ecore_wl2/ecore_wl2_window.c

index 6096f28..30ff85f 100644 (file)
@@ -680,6 +680,14 @@ _ecore_wl_window_cb_angle_change(void *data, struct tizen_rotation *tizen_rotati
    ev->w = win->def_config.geometry.w;
    ev->h = win->def_config.geometry.h;
 
+   //TIZEN_ONLY(20190128): Use set_config geometry
+   if (ev->w == 0 && ev->h == 0)
+     {
+        ev->w = win->set_config.geometry.w;
+        ev->h = win->set_config.geometry.h;
+     }
+   //
+
    switch (angle)
      {
       case TIZEN_ROTATION_ANGLE_0: