This method should not update weston_view directly. This shall be done by
controller via ivi_layout_*.

Signed-off-by: Nobuhiko Tanibata <nobuhiko_tanib...@xddp.denso.co.jp>
Acked-by: Pekka Paalanen <pekka.paala...@collabora.co.uk>
---
 ivi-shell/ivi-shell.c | 18 ------------------
 1 file changed, 18 deletions(-)

diff --git a/ivi-shell/ivi-shell.c b/ivi-shell/ivi-shell.c
index aef8e63..4a688cc 100644
--- a/ivi-shell/ivi-shell.c
+++ b/ivi-shell/ivi-shell.c
@@ -112,33 +112,15 @@ ivi_shell_surface_configure(struct weston_surface 
*surface,
                            int32_t sx, int32_t sy)
 {
        struct ivi_shell_surface *ivisurf = get_ivi_shell_surface(surface);
-       struct weston_view *view;
-       float from_x;
-       float from_y;
-       float to_x;
-       float to_y;
 
        if (surface->width == 0 || surface->height == 0 || ivisurf == NULL)
                return;
 
-       view = ivi_layout_get_weston_view(ivisurf->layout_surface);
-
-       if (view == NULL)
-               return;
-
        if (ivisurf->width != surface->width ||
            ivisurf->height != surface->height) {
                ivisurf->width  = surface->width;
                ivisurf->height = surface->height;
 
-               weston_view_to_global_float(view, 0, 0, &from_x, &from_y);
-               weston_view_to_global_float(view, sx, sy, &to_x, &to_y);
-
-               weston_view_set_position(view,
-                                        view->geometry.x + to_x - from_x,
-                                        view->geometry.y + to_y - from_y);
-               weston_view_update_transform(view);
-
                ivi_layout_surface_configure(ivisurf->layout_surface,
                                             surface->width, surface->height);
        }
-- 
1.8.3.1

_______________________________________________
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to