ecore_evas/wayland: Correctly use framespace size for ecore_evas_resize.
authorRafael Antognolli <rafael.antognolli@intel.com>
Mon, 6 May 2013 23:06:13 +0000 (20:06 -0300)
committerRafael Antognolli <rafael.antognolli@intel.com>
Mon, 6 May 2013 23:10:06 +0000 (20:10 -0300)
src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_egl.c
src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_shm.c

index 89b5ee9..f775024 100644 (file)
@@ -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;
index 523b478..871b796 100644 (file)
@@ -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;