ecore-evas-wl: Ignore step size when maximizing

Summary; This fixes an issue where maximizing efl/elm apps in Weston
and in Enlightenment would cause extra space to be left around the
window.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2015-10-30 15:12:41 -04:00
parent b1bbe1f47c
commit 60f5b43deb
1 changed files with 20 additions and 17 deletions

View File

@ -554,6 +554,8 @@ _ecore_evas_wl_common_resize(Ecore_Evas *ee, int w, int h)
w = h * ee->prop.aspect;
}
if (!ee->prop.maximized)
{
/* calc new size using base size & step size */
if (ee->prop.step.w > 0)
{
@ -574,6 +576,7 @@ _ecore_evas_wl_common_resize(Ecore_Evas *ee, int w, int h)
else
h = (minh + (((h - minh) / ee->prop.step.h) * ee->prop.step.h));
}
}
if ((maxw > 0) && (w > maxw))
w = maxw;