[PATCH] shell: Fix not destroy black surface when fullscreen surface exit abnomally.

zhiwen.wu at linux.intel.com zhiwen.wu at linux.intel.com
Sun Mar 4 19:01:40 PST 2012


From: Alex Wu <zhiwen.wu at linux.intel.com>

When a client with fullscreen surface displayed was aborted by Ctrl-C, the
black surface still be there. Destroy the black surface in
destroy_shell_surface().
---
 src/shell.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/shell.c b/src/shell.c
index 4725335..e6739e9 100644
--- a/src/shell.c
+++ b/src/shell.c
@@ -783,6 +783,9 @@ destroy_shell_surface(struct wl_resource *resource)
 	if (shsurf->surface)
 		wl_list_remove(&shsurf->surface_destroy_listener.link);
 
+	if (shsurf->fullscreen.black_surface)
+		weston_surface_destroy(shsurf->fullscreen.black_surface);
+
 	wl_list_remove(&shsurf->link);
 	free(shsurf);
 }
-- 
1.7.5.4



More information about the wayland-devel mailing list