layout: Make the view mapped at activation completion
[src/agl-compositor.git] / src / desktop.c
index 74ce916..efebfc1 100644 (file)
@@ -134,7 +134,7 @@ desktop_surface_added(struct weston_desktop_surface *dsurface, void *userdata)
        surface->ivi = ivi;
        surface->dsurface = dsurface;
        surface->role = IVI_SURFACE_ROLE_NONE;
-       surface->activated_by_default = false;
+       surface->mapped = false;
        surface->advertised_on_launch = false;
        surface->checked_pending = false;
        wl_list_init(&surface->link);
@@ -444,6 +444,7 @@ ivi_shell_destroy(struct wl_listener *listener, void *data)
 
        weston_desktop_destroy(ivi->desktop);
        ivi_compositor_destroy_pending_surfaces(ivi);
+       wl_list_remove(&listener->link);
 }
 
 int