-static void
-desktop_surface_removed(struct weston_desktop_surface *dsurface, void *userdata)
-{
- struct ivi_surface *surface =
- weston_desktop_surface_get_user_data(dsurface);
- struct weston_surface *wsurface =
- weston_desktop_surface_get_surface(dsurface);
- struct ivi_compositor *ivi = surface->ivi;
-
- /* TODO */
- if (surface->role != IVI_SURFACE_ROLE_DESKTOP)
- return;
-
- if (weston_surface_is_mapped(wsurface)) {
- weston_desktop_surface_unlink_view(surface->desktop.view);
- weston_view_destroy(surface->desktop.view);
- wl_list_remove(&surface->link);
- }
- free(surface);
-
- ivi_reflow_outputs(ivi);
-}
-
-static void
-surface_committed(struct ivi_surface *surface)