weston: change mode policy for netflix app [1/1]

PD#SWPL-186247

Problem:
mode policy for netflix is not correct.

Solution:
change mode policy for netflix app

Verify:
s7d

Change-Id: I4346d0ac2c4930c769dfa381398879ac07b6025a
Signed-off-by: limin.tian <limin.tian@amlogic.com>
diff --git a/libweston/compositor.c b/libweston/compositor.c
index 4d5bec2..44b7942 100644
--- a/libweston/compositor.c
+++ b/libweston/compositor.c
@@ -2310,7 +2310,7 @@
 WL_EXPORT void
 weston_surface_destroy(struct weston_surface *surface)
 {
-	weston_log("\n weston_surface_destroy :%p\n", surface);
+	weston_log("\n weston_surface_destroy :%p  output:%p name :%s \n", surface, surface->output, surface->name);
 	struct wl_resource *cb, *next;
 	struct weston_view *ev, *nv;
 	struct weston_pointer_constraint *constraint, *next_constraint;
@@ -2358,11 +2358,12 @@
 
 	fd_clear(&surface->acquire_fence_fd);
 
+	weston_set_appstate_by_appname(surface->compositor, surface->name, 0);
 	weston_clear_video_surface_info(surface);
 	weston_surface_destroy_info_for_surface(surface);
+	weston_log("\n weston_surface_destroy :%p output:%p name :%s \n", surface, surface->output, surface->name);
 
 	free(surface);
-	weston_log("\n weston_surface_destroy :%p end\n", surface);
 }
 
 static void