From: Jiyoun Park Date: Mon, 20 Feb 2017 01:28:27 +0000 (+0900) Subject: ecore_evas_wayland_common: fix bug that window is not rotated when app request rotate. X-Git-Tag: upstream/1.20.0~1960 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=78feb9decb91533775056a10f05647da7fb067dd;p=platform%2Fupstream%2Fefl.git ecore_evas_wayland_common: fix bug that window is not rotated when app request rotate. In landscape mode, width & height of evas are different with ecore's. so diff is checked differently according to the portrait & landscape mode. --- diff --git a/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c b/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c index 257ccf2..505a283 100644 --- a/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c +++ b/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c @@ -925,6 +925,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__); @@ -1068,7 +1069,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;