summaryrefslogtreecommitdiffstats
path: root/src/shell.c
diff options
context:
space:
mode:
authorMarius Vlad <marius.vlad@collabora.com>2020-10-22 00:07:53 +0300
committerMarius Vlad <marius.vlad@collabora.com>2020-10-22 19:36:21 +0300
commitc9f38335a74bb847cf3914c12514316c178c4bc1 (patch)
treed1cc96dad43d68e11514db0a442598ca161c4ac3 /src/shell.c
parentd4f4a4e13c6ad0222df2df5b45de6dc60a64a26b (diff)
shell: Destroy weston_transmitter_surface as wellsandbox/mvlad/add-waltham-support-wip
Instruct waltham-transmitter-plugin that it can destroy its own surface representation when the weston_surface is also destroyed. Bug-AGL: SPEC-3601, SPEC-3611 Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: Ie0e5409b21c043b8c98bebb4d77808227ee38aca
Diffstat (limited to 'src/shell.c')
-rw-r--r--src/shell.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/shell.c b/src/shell.c
index 612661f..463d0e6 100644
--- a/src/shell.c
+++ b/src/shell.c
@@ -107,6 +107,20 @@ ivi_set_desktop_surface_fullscreen(struct ivi_surface *surface)
agl_shell_desktop_advertise_application_id(ivi, surface);
}
+void
+ivi_destroy_waltham_destroy(struct ivi_surface *surface)
+{
+ struct ivi_compositor *ivi = surface->ivi;
+ const struct weston_transmitter_api *api =
+ ivi->waltham_transmitter_api;
+
+ if (!api)
+ return;
+
+ if (surface->waltham_surface.transmitter_surface)
+ api->surface_destroy(surface->waltham_surface.transmitter_surface);
+}
+
static void
ivi_output_notify_waltham_plugin(struct ivi_surface *surface)
{