ecore_wayland: use configured width/height to send rotation event 59/69759/3
authorMinJeong Kim <minjjj.kim@samsung.com>
Mon, 16 May 2016 13:24:19 +0000 (22:24 +0900)
committerGwanglim Lee <gl77.lee@samsung.com>
Tue, 17 May 2016 07:13:19 +0000 (00:13 -0700)
It's necessary to store configured width/height values to rotation event
structure instead of allocation width/height to prevent overriding latest
configured size by allocation size.

Change-Id: I0b5a7f577a105cb107e3300af19ee0d91b56476f
Signed-off-by: MinJeong Kim <minjjj.kim@samsung.com>
src/lib/ecore_wayland/ecore_wl_window.c

index f020531..b18739d 100644 (file)
@@ -1592,8 +1592,8 @@ _ecore_wl_window_cb_angle_change(void *data, struct tizen_rotation *tizen_rotati
    win->tz_rot.serial = serial;
 
    ev->win = win->id;
-   ev->w = win->allocation.w;
-   ev->h = win->allocation.h;
+   ev->w = win->configured.w;
+   ev->h = win->configured.h;
 
    switch (angle)
      {