ecore_evas_wayland_common: fix bug that window is not rotated when app request... 14/123014/2
authorJiyoun Park <jy0703.park@samsung.com>
Mon, 20 Feb 2017 03:22:06 +0000 (12:22 +0900)
committerJiyoun Park <jy0703.park@samsung.com>
Tue, 4 Apr 2017 07:51:47 +0000 (16:51 +0900)
    In landscape mode, width & height of evas are different with ecore's.
    so diff is checked differently according to the  portrait & landscape mode.

   opensource_commit 78feb9decb91533775056a10f05647da7fb067dd
   Author: Jiyoun Park <jy0703.park@samsung.com>
   Date:   Mon Feb 20 10:28:27 2017 +0900

Change-Id: I8348833c5f60390ddcbdcf01053f49ca8246877f

src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c

index df11030..ed19d10 100755 (executable)
@@ -773,6 +773,7 @@ _ecore_evas_wl_common_resize(Ecore_Evas *ee, int w, int h)
    Ecore_Evas_Engine_Wl_Data *wdata;
    int orig_w, orig_h;
    int ow, oh;
+   int diff = 0;
 
    LOGFN(__FILE__, __LINE__, __FUNCTION__);
 
@@ -911,7 +912,13 @@ _ecore_evas_wl_common_resize(Ecore_Evas *ee, int w, int h)
      }
 
    evas_output_size_get(ee->evas, &ow, &oh);
-   if ((ow != w) || (oh != h))
+
+   if (ECORE_EVAS_PORTRAIT(ee) && ((ow != w) || (oh != h)))
+     diff = 1;
+   if (!ECORE_EVAS_PORTRAIT(ee) && ((ow != h) || (oh != w)))
+     diff = 1;
+
+   if (diff)
      {
         ee->w = orig_w;
         ee->h = orig_h;