Backport "Add support for move_resize." 17/16117/1 accepted/tizen/mobile tizen tizen_ivi_panda accepted/tizen/mobile/20140207.175654 submit/tizen/20140207.071018 submit/tizen_ivi_panda/20140403.193014 submit/tizen_ivi_panda/20140403.211619
authorAlex Wu <zhiwen.wu@linux.intel.com>
Fri, 7 Feb 2014 05:43:58 +0000 (13:43 +0800)
committerAlex Wu <zhiwen.wu@linux.intel.com>
Fri, 7 Feb 2014 05:56:53 +0000 (13:56 +0800)
Just backported the move_resize part of this commit.
Commit Details:
==================================================
git://git.enlightenment.org/core/efl.git master

commit 0dd34d31e21f1ee20f27d61eb4a2a7807f05a17f
Author: Chris Michael <cp.michael@samsung.com>
Date:   Fri Jun 7 08:09:55 2013 +0100

Add support for move_resize.
Bunch of minor "consistency" changes to bring egl and shm code in-sync.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
==================================================

Change-Id: I06313a0c0104b70e7c782f9729801639019fb171
Signed-off-by: Alex Wu <zhiwen.wu@linux.intel.com>
src/lib/ecore_evas/ecore_evas_wayland_egl.c

index 0075865..ee0e4df 100644 (file)
@@ -61,6 +61,7 @@ static void _ecore_evas_wl_show(Ecore_Evas *ee);
 static void _ecore_evas_wl_hide(Ecore_Evas *ee);
 static void _ecore_evas_wl_alpha_set(Ecore_Evas *ee, int alpha);
 static void _ecore_evas_wl_transparent_set(Ecore_Evas *ee, int transparent);
+static void _ecore_evas_wl_move_resize(Ecore_Evas *ee, int x, int y, int w, int h);
 
 static Ecore_Evas_Engine_Func _ecore_wl_engine_func = 
 {
@@ -82,7 +83,7 @@ static Ecore_Evas_Engine_Func _ecore_wl_engine_func =
    _ecore_evas_wl_common_move,
    NULL, // managed_move
    _ecore_evas_wl_resize,
-   NULL, // move_resize
+   _ecore_evas_wl_move_resize,
    NULL, // rotation_set
    NULL, // shaped_set
    _ecore_evas_wl_show,
@@ -321,6 +322,18 @@ _ecore_evas_wl_resize(Ecore_Evas *ee, int w, int h)
      }
 }
 
+static void
+_ecore_evas_wl_move_resize(Ecore_Evas *ee, int x, int y, int w, int h)
+{
+   LOGFN(__FILE__, __LINE__, __FUNCTION__);
+
+   if (!ee) return;
+   if ((ee->x != x) || (ee->y != y))
+     _ecore_evas_wl_common_move(ee, x, y);
+   if ((ee->w != w) || (ee->h != h))
+     _ecore_evas_wl_resize(ee, w, h);
+}
+
 static void 
 _ecore_evas_wl_show(Ecore_Evas *ee)
 {