forked from enlightenment/efl
Ecore_Evas: No need to call ecore_x_window_move/resize is the canvas
is already at the required size or position. SVN revision: 63522
This commit is contained in:
parent
83d9070643
commit
42d8b6b481
|
@ -1295,18 +1295,21 @@ _ecore_evas_x_move(Ecore_Evas *ee, int x, int y)
|
|||
}
|
||||
else
|
||||
{
|
||||
if ((ee->x != x) || (ee->y != y))
|
||||
{
|
||||
if (!ee->engine.x.managed)
|
||||
{
|
||||
ee->x = x;
|
||||
ee->y = y;
|
||||
}
|
||||
ecore_x_window_move(ee->prop.window, x, y);
|
||||
}
|
||||
if (!ee->should_be_visible)
|
||||
{
|
||||
/* We need to request pos */
|
||||
ee->prop.request_pos = 1;
|
||||
_ecore_evas_x_size_pos_hints_update(ee);
|
||||
}
|
||||
if (!ee->engine.x.managed)
|
||||
{
|
||||
ee->x = x;
|
||||
ee->y = y;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1362,7 +1365,7 @@ _ecore_evas_x_resize(Ecore_Evas *ee, int w, int h)
|
|||
if (ee->func.fn_resize) ee->func.fn_resize(ee);
|
||||
}
|
||||
}
|
||||
else
|
||||
else if ((ee->w != w) || (ee->h != h))
|
||||
ecore_x_window_resize(ee->prop.window, w, h);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue