ecore wayland: fixed bug not to move window which is not mapped 26/53226/1 accepted/tizen/mobile/20151203.230613 accepted/tizen/mobile/20151203.231126 accepted/tizen/tv/20151203.230635 accepted/tizen/wearable/20151203.230653 submit/tizen/20151203.030721 submit/tizen_mobile/20151203.093910
authorDoyoun Kang <doyoun.kang@samsung.com>
Thu, 3 Dec 2015 02:56:47 +0000 (11:56 +0900)
committerDoyoun Kang <doyoun.kang@samsung.com>
Thu, 3 Dec 2015 02:56:47 +0000 (11:56 +0900)
Change-Id: Ib21e6bac21854134b9f8786a0feaeb34399dc8d0

src/lib/ecore_wayland/ecore_wl_window.c
src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c

index aa22ca3..a24a2cd 100644 (file)
@@ -951,8 +951,11 @@ ecore_wl_window_parent_set(Ecore_Wl_Window *win, Ecore_Wl_Window *parent)
 }
 
 EAPI void
-ecore_wl_window_position_set(Ecore_Wl_Window *win, int x EINA_UNUSED, int y EINA_UNUSED)
+ecore_wl_window_position_set(Ecore_Wl_Window *win, int x, int y)
 {
+   win->allocation.x = x;
+   win->allocation.y = y;
+
    if ((win->surface) && (win->tz_position))
      {
         tizen_position_set(win->tz_position, win->allocation.x, win->allocation.y);
index 758e193..20cc761 100644 (file)
@@ -840,10 +840,13 @@ _ecore_evas_wl_common_callback_mouse_out_set(Ecore_Evas *ee, void (*func)(Ecore_
 void
 _ecore_evas_wl_common_move(Ecore_Evas *ee, int x, int y)
 {
+   Ecore_Evas_Engine_Wl_Data *wdata;
+
    LOGFN(__FILE__, __LINE__, __FUNCTION__);
 
    if (!ee) return;
 
+   wdata = ee->engine.data;
    ee->req.x = x;
    ee->req.y = y;
 
@@ -853,6 +856,8 @@ _ecore_evas_wl_common_move(Ecore_Evas *ee, int x, int y)
         ee->y = y;
         if (ee->func.fn_move) ee->func.fn_move(ee);
      }
+
+   ecore_wl_window_position_set(wdata->win, x, y);
 }
 
 /* Frame border: