From: Mike Blumenkrantz Date: Mon, 7 Aug 2017 17:26:41 +0000 (-0400) Subject: ecore-evas wayland: remove move() function X-Git-Tag: submit/sandbox/upgrade/efl120/20180319.053334~3267 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=15126b2f4f8ef5159755c0ee07f80a90e58ba628;p=platform%2Fupstream%2Fefl.git ecore-evas wayland: remove move() function this is conceptually wrong to include in a wayland engine --- diff --git a/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c b/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c index 5bd978e..c7a3206 100644 --- a/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c +++ b/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c @@ -1198,31 +1198,11 @@ _ecore_evas_wl_common_free(Ecore_Evas *ee) } static void -_ecore_evas_wl_common_move(Ecore_Evas *ee, int x, int y) +_ecore_evas_wl_common_move_resize(Ecore_Evas *ee, int x EINA_UNUSED, int y EINA_UNUSED, int w, int h) { LOGFN(__FILE__, __LINE__, __FUNCTION__); if (!ee) return; - - ee->req.x = x; - ee->req.y = y; - - if ((ee->x != x) || (ee->y != y)) - { - ee->x = x; - ee->y = y; - if (ee->func.fn_move) ee->func.fn_move(ee); - } -} - -static void -_ecore_evas_wl_common_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_common_resize(ee, w, h); } @@ -2232,7 +2212,7 @@ static Ecore_Evas_Engine_Func _ecore_wl_engine_func = NULL, // unsticky_set NULL, // pre_render_set NULL, // post_render_set - _ecore_evas_wl_common_move, + NULL, NULL, // managed_move _ecore_evas_wl_common_resize, _ecore_evas_wl_common_move_resize, @@ -2362,8 +2342,6 @@ _ecore_evas_wl_common_new_internal(const char *disp_name, unsigned int parent, i ee->driver = engine_name; if (disp_name) ee->name = strdup(disp_name); - ee->x = x; - ee->y = y; ee->w = w; ee->h = h; ee->req.x = ee->x;