}
skip_output_asignment:
- weston_log("Removed surface %p, app_id %s, role %s\n", surface,
+ weston_log(">> Removed surface %p, app_id %s, role %s\n", surface,
app_id, ivi_layout_get_surface_role_name(surface));
if (app_id && output)
.set_xwayland_position = desktop_set_xwayland_position,
};
+static void
+ivi_shell_destroy(struct wl_listener *listener, void *data)
+{
+ struct ivi_compositor *ivi = container_of(listener,
+ struct ivi_compositor, destroy_listener);
+
+ weston_desktop_destroy(ivi->desktop);
+ ivi_compositor_destroy_pending_surfaces(ivi);
+ wl_list_remove(&listener->link);
+}
+
int
ivi_desktop_init(struct ivi_compositor *ivi)
{
return -1;
}
+ if (!weston_compositor_add_destroy_listener_once(ivi->compositor,
+ &ivi->destroy_listener, ivi_shell_destroy)) {
+ return -1;
+ }
+
return 0;
}