From: Alex Wu Date: Fri, 7 Feb 2014 05:43:58 +0000 (+0800) Subject: Backport "Add support for move_resize." X-Git-Tag: accepted/tizen/mobile/20140207.175654^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Ftizen;p=profile%2Fmobile%2Fecore.git Backport "Add support for move_resize." Just backported the move_resize part of this commit. Commit Details: ================================================== git://git.enlightenment.org/core/efl.git master commit 0dd34d31e21f1ee20f27d61eb4a2a7807f05a17f Author: Chris Michael 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 ================================================== Change-Id: I06313a0c0104b70e7c782f9729801639019fb171 Signed-off-by: Alex Wu --- diff --git a/src/lib/ecore_evas/ecore_evas_wayland_egl.c b/src/lib/ecore_evas/ecore_evas_wayland_egl.c index 0075865..ee0e4df 100644 --- a/src/lib/ecore_evas/ecore_evas_wayland_egl.c +++ b/src/lib/ecore_evas/ecore_evas_wayland_egl.c @@ -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) {