diff options
author | Rafael Antognolli <rafael.antognolli@intel.com> | 2013-11-01 14:33:54 -0200 |
---|---|---|
committer | Rafael Antognolli <rafael.antognolli@intel.com> | 2013-11-01 15:07:53 -0200 |
commit | 6aa11cf89d305da10058edfade3e463cdaae9a2d (patch) | |
tree | 5b07fb58dfb4386adbd768dfeb1810f1431cad02 /src | |
parent | 839a737a626d6840c37ce166cc8834b765595bc1 (diff) |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/ecore_wayland/ecore_wl_window.c | 2 | ||||
-rw-r--r-- | src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/src/lib/ecore_wayland/ecore_wl_window.c b/src/lib/ecore_wayland/ecore_wl_window.c index 97508e28f1..fc71053d06 100644 --- a/src/lib/ecore_wayland/ecore_wl_window.c +++ b/src/lib/ecore_wayland/ecore_wl_window.c | |||
@@ -136,6 +136,8 @@ ecore_wl_window_move(Ecore_Wl_Window *win, int x, int y) | |||
136 | 136 | ||
137 | if (!win) return; | 137 | if (!win) return; |
138 | 138 | ||
139 | win->moving = EINA_TRUE; | ||
140 | |||
139 | ecore_wl_window_update_location(win, x, y); | 141 | ecore_wl_window_update_location(win, x, y); |
140 | 142 | ||
141 | if (win->shell_surface) | 143 | if (win->shell_surface) |
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 4aa27df1bc..172cafe437 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 | |||
@@ -1391,10 +1391,7 @@ _ecore_evas_wayland_move(Ecore_Evas *ee, int x, int y) | |||
1391 | { | 1391 | { |
1392 | wdata = ee->engine.data; | 1392 | wdata = ee->engine.data; |
1393 | if (wdata->win) | 1393 | if (wdata->win) |
1394 | { | 1394 | ecore_wl_window_move(wdata->win, x, y); |
1395 | wdata->win->moving = EINA_TRUE; | ||
1396 | ecore_wl_window_move(wdata->win, x, y); | ||
1397 | } | ||
1398 | } | 1395 | } |
1399 | } | 1396 | } |
1400 | 1397 | ||