From 9db5f98cc5278272412884a49d2c8375e5c2b226 Mon Sep 17 00:00:00 2001 From: Hosang Kim Date: Mon, 28 Jan 2019 17:10:59 +0900 Subject: [PATCH] ecore_wl2_window: use set_config geometry. 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 --- src/lib/ecore_wl2/ecore_wl2_window.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/lib/ecore_wl2/ecore_wl2_window.c b/src/lib/ecore_wl2/ecore_wl2_window.c index 6096f28..30ff85f 100644 --- a/src/lib/ecore_wl2/ecore_wl2_window.c +++ b/src/lib/ecore_wl2/ecore_wl2_window.c @@ -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: -- 2.7.4