forked from enlightenment/efl
ecore_evas/wayland: Correctly use framespace size for ecore_evas_resize.
This commit is contained in:
parent
fc34b73c28
commit
b619b6bfd4
|
@ -241,6 +241,7 @@ _ecore_evas_wl_resize(Ecore_Evas *ee, int w, int h)
|
|||
Ecore_Evas_Engine_Wl_Data *wdata;
|
||||
LOGFN(__FILE__, __LINE__, __FUNCTION__);
|
||||
int orig_w, orig_h;
|
||||
int ow, oh;
|
||||
|
||||
if (!ee) return;
|
||||
if (w < 1) w = 1;
|
||||
|
@ -277,6 +278,8 @@ _ecore_evas_wl_resize(Ecore_Evas *ee, int w, int h)
|
|||
}
|
||||
}
|
||||
|
||||
evas_output_size_get(ee->evas, &ow, &oh);
|
||||
if ((ow != w) || (oh != h))
|
||||
if ((ee->w != w) || (ee->h != h))
|
||||
{
|
||||
ee->w = orig_w;
|
||||
|
|
|
@ -252,6 +252,7 @@ _ecore_evas_wl_resize(Ecore_Evas *ee, int w, int h)
|
|||
{
|
||||
Ecore_Evas_Engine_Wl_Data *wdata;
|
||||
int orig_w, orig_h;
|
||||
int ow, oh;
|
||||
|
||||
LOGFN(__FILE__, __LINE__, __FUNCTION__);
|
||||
|
||||
|
@ -291,7 +292,8 @@ _ecore_evas_wl_resize(Ecore_Evas *ee, int w, int h)
|
|||
}
|
||||
}
|
||||
|
||||
if ((ee->w != w) || (ee->h != h))
|
||||
evas_output_size_get(ee->evas, &ow, &oh);
|
||||
if ((ow != w) || (oh != h))
|
||||
{
|
||||
ee->w = orig_w;
|
||||
ee->h = orig_h;
|
||||
|
|
Loading…
Reference in New Issue