ecore evas manages the width and height using the ee->w/h and ee->req.w/h.
but sometimes only ee->req value can be updated.
opensource_commit
fb730c1fd747539875a91bc35b51c51df56709d9
Author: Jiyoun Park <jy0703.park@samsung.com>
Date: Fri Mar 3 10:27:00 2017 +0900
Change-Id: I05d104fd3a2a916e876dc1b9ec64e1ff5d533573
_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;
ee->req.w = w;
ee->req.h = h;
- orig_w = w;
- orig_h = h;
+
+ /* TODO: wayland client can resize the ecore_evas directly.
+ * In the future, we will remove ee->req value in wayland backend */
+ ee->w = w;
+ ee->h = h;
if (!ee->prop.fullscreen)
{
else if (h < minh)
h = minh;
- orig_w = w;
- orig_h = h;
+ ee->w = w;
+ ee->h = h;
+ ee->req.w = w;
+ ee->req.h = h;
if (ECORE_EVAS_PORTRAIT(ee))
{
if (diff)
{
- ee->w = orig_w;
- ee->h = orig_h;
- ee->req.w = orig_w;
- ee->req.h = orig_h;
-
if (ECORE_EVAS_PORTRAIT(ee))
{
evas_output_size_set(ee->evas, w, h);