X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fdesktop.c;h=d5b0be9e9e6ac0c8d37ed0fb94498c747d693f54;hb=7ec377fb843d18ac29cd756b5833d94185706602;hp=8554b069602f2dd7f37b31cf238fa8e0b0e854d8;hpb=6d2720303d8441525ba2e37c9d87daef568f8cdc;p=src%2Fagl-compositor.git diff --git a/src/desktop.c b/src/desktop.c index 8554b06..d5b0be9 100644 --- a/src/desktop.c +++ b/src/desktop.c @@ -36,6 +36,20 @@ #include "agl-shell-desktop-server-protocol.h" +static void +ivi_layout_destroy_saved_outputs(struct ivi_compositor *ivi) +{ + struct ivi_output *output, *output_next; + + wl_list_for_each_safe(output, output_next, &ivi->saved_outputs, link) { + free(output->app_ids); + free(output->name); + + wl_list_remove(&output->link); + free(output); + } +} + static void desktop_advertise_app(struct wl_listener *listener, void *data) { @@ -318,7 +332,7 @@ desktop_surface_removed(struct weston_desktop_surface *dsurface, void *userdata) output->active->view->is_mapped = false; output->active->view->surface->is_mapped = false; - weston_layer_entry_remove(&output->active->view->layer_link); + weston_view_move_to_layer(output->active->view, NULL); output->active = NULL; }