Update the engine resize edge before we call ecore_wl_window_resize
authorChris Michael <cp.michael@samsung.com>
Wed, 4 Dec 2013 11:29:32 +0000 (11:29 +0000)
committerChris Michael <cp.michael@samsung.com>
Wed, 4 Dec 2013 11:32:45 +0000 (11:32 +0000)
Ecore_wl_window_resize essentially tells the shell to start the resize
process. We should have the evas engine info's resize_edge updated
Before we start that process so that Evas knows where the resize is
occuring from

Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_egl.c
src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_shm.c

index a9a1776..9b9aa26 100644 (file)
@@ -443,14 +443,14 @@ _ecore_evas_wayland_egl_resize(Ecore_Evas *ee, int location)
      {
         int fw, fh;
 
+        _ecore_evas_wayland_egl_resize_edge_set(ee, location);
+
         evas_output_framespace_get(ee->evas, NULL, NULL, &fw, &fh);
 
         if ((ee->rotation == 0) || (ee->rotation == 180))
           ecore_wl_window_resize(wdata->win, ee->w + fw, ee->h + fh, location);
         else
           ecore_wl_window_resize(wdata->win, ee->w + fh, ee->h + fw, location);
-
-        _ecore_evas_wayland_egl_resize_edge_set(ee, location);
      }
 }
 
index e091830..d418344 100644 (file)
@@ -440,14 +440,14 @@ _ecore_evas_wayland_shm_resize(Ecore_Evas *ee, int location)
      {
         int fw, fh;
 
+        _ecore_evas_wayland_shm_resize_edge_set(ee, location);
+
         evas_output_framespace_get(ee->evas, NULL, NULL, &fw, &fh);
 
         if ((ee->rotation == 90) || (ee->rotation == 270))
           ecore_wl_window_resize(wdata->win, ee->w + fh, ee->h + fw, location);
         else
           ecore_wl_window_resize(wdata->win, ee->w + fw, ee->h + fh, location);
-
-        _ecore_evas_wayland_shm_resize_edge_set(ee, location);
      }
 }