ecore/wayland: Set win->moving from inside ecore_wayland.
authorRafael Antognolli <rafael.antognolli@intel.com>
Fri, 1 Nov 2013 16:33:54 +0000 (14:33 -0200)
committerRafael Antognolli <rafael.antognolli@intel.com>
Fri, 1 Nov 2013 17:07:53 +0000 (15:07 -0200)
We can set it from the ecore_wl_window_move() function, instead of
directly changing the attribute.

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

index 97508e2..fc71053 100644 (file)
@@ -136,6 +136,8 @@ ecore_wl_window_move(Ecore_Wl_Window *win, int x, int y)
 
    if (!win) return;
 
+   win->moving = EINA_TRUE;
+
    ecore_wl_window_update_location(win, x, y);
 
    if (win->shell_surface)
index 4aa27df..172cafe 100644 (file)
@@ -1391,10 +1391,7 @@ _ecore_evas_wayland_move(Ecore_Evas *ee, int x, int y)
      {
        wdata = ee->engine.data;
         if (wdata->win)
-          {
-             wdata->win->moving = EINA_TRUE;
-             ecore_wl_window_move(wdata->win, x, y);
-          }
+          ecore_wl_window_move(wdata->win, x, y);
      }
 }