ecore/wayland: Set win->moving from inside ecore_wayland.

We can set it from the ecore_wl_window_move() function, instead of
directly changing the attribute.
This commit is contained in:
Rafael Antognolli 2013-11-01 14:33:54 -02:00
parent 839a737a62
commit 6aa11cf89d
2 changed files with 3 additions and 4 deletions

View 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)

View 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);
}
}