summaryrefslogtreecommitdiff
path: root/src/modules/ecore_evas
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2017-08-07 13:26:41 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2017-08-07 13:26:50 -0400
commit15126b2f4f8ef5159755c0ee07f80a90e58ba628 (patch)
tree24120f3009479a3d8a2f5a7669ecf308ea82dba8 /src/modules/ecore_evas
parent36a2e29624e3419ba2c2164cb6cdeba131c8c45d (diff)
ecore-evas wayland: remove move() function
this is conceptually wrong to include in a wayland engine
Diffstat (limited to 'src/modules/ecore_evas')
-rw-r--r--src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c26
1 files changed, 2 insertions, 24 deletions
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)
1198} 1198}
1199 1199
1200static void 1200static void
1201_ecore_evas_wl_common_move(Ecore_Evas *ee, int x, int y) 1201_ecore_evas_wl_common_move_resize(Ecore_Evas *ee, int x EINA_UNUSED, int y EINA_UNUSED, int w, int h)
1202{ 1202{
1203 LOGFN(__FILE__, __LINE__, __FUNCTION__); 1203 LOGFN(__FILE__, __LINE__, __FUNCTION__);
1204 1204
1205 if (!ee) return; 1205 if (!ee) return;
1206
1207 ee->req.x = x;
1208 ee->req.y = y;
1209
1210 if ((ee->x != x) || (ee->y != y))
1211 {
1212 ee->x = x;
1213 ee->y = y;
1214 if (ee->func.fn_move) ee->func.fn_move(ee);
1215 }
1216}
1217
1218static void
1219_ecore_evas_wl_common_move_resize(Ecore_Evas *ee, int x, int y, int w, int h)
1220{
1221 LOGFN(__FILE__, __LINE__, __FUNCTION__);
1222
1223 if (!ee) return;
1224 if ((ee->x != x) || (ee->y != y))
1225 _ecore_evas_wl_common_move(ee, x, y);
1226 if ((ee->w != w) || (ee->h != h)) 1206 if ((ee->w != w) || (ee->h != h))
1227 _ecore_evas_wl_common_resize(ee, w, h); 1207 _ecore_evas_wl_common_resize(ee, w, h);
1228} 1208}
@@ -2232,7 +2212,7 @@ static Ecore_Evas_Engine_Func _ecore_wl_engine_func =
2232 NULL, // unsticky_set 2212 NULL, // unsticky_set
2233 NULL, // pre_render_set 2213 NULL, // pre_render_set
2234 NULL, // post_render_set 2214 NULL, // post_render_set
2235 _ecore_evas_wl_common_move, 2215 NULL,
2236 NULL, // managed_move 2216 NULL, // managed_move
2237 _ecore_evas_wl_common_resize, 2217 _ecore_evas_wl_common_resize,
2238 _ecore_evas_wl_common_move_resize, 2218 _ecore_evas_wl_common_move_resize,
@@ -2362,8 +2342,6 @@ _ecore_evas_wl_common_new_internal(const char *disp_name, unsigned int parent, i
2362 ee->driver = engine_name; 2342 ee->driver = engine_name;
2363 if (disp_name) ee->name = strdup(disp_name); 2343 if (disp_name) ee->name = strdup(disp_name);
2364 2344
2365 ee->x = x;
2366 ee->y = y;
2367 ee->w = w; 2345 ee->w = w;
2368 ee->h = h; 2346 ee->h = h;
2369 ee->req.x = ee->x; 2347 ee->req.x = ee->x;