shell: Destroy weston_transmitter_surface as well
[src/agl-compositor.git] / src / desktop.c
index 4caba48..ad1ce44 100644 (file)
@@ -192,6 +192,10 @@ desktop_surface_removed(struct weston_desktop_surface *dsurface, void *userdata)
                output->active = NULL;
        }
 
+       if (surface->role == IVI_SURFACE_ROLE_REMOTE &&
+           output->type == OUTPUT_REMOTE)
+               ivi_destroy_waltham_destroy(surface);
+
        /* check if there's a last 'remote' surface and insert a black
         * surface view if there's no background set for that output
         */