ecore_evas/x: Minor code simplification

This commit is contained in:
Jean-Philippe Andre 2016-10-27 15:46:28 +09:00
parent 7f25f19b47
commit 7f57e23670
1 changed files with 25 additions and 26 deletions

View File

@ -2180,8 +2180,8 @@ _ecore_evas_x_resize(Ecore_Evas *ee, int w, int h)
if (edata->direct_resize)
{
if ((ee->w != w) || (ee->h != h))
{
if ((ee->w == w) && (ee->h == h)) return;
ee->w = w;
ee->h = h;
if (changed) edata->configure_reqs++;
@ -2208,7 +2208,6 @@ _ecore_evas_x_resize(Ecore_Evas *ee, int w, int h)
_ecore_evas_x_resize_shape(ee);
if (ee->func.fn_resize) ee->func.fn_resize(ee);
}
}
else
{
edata->configure_coming = 1;