From: Alex Wu <[email protected]>

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

_______________________________________________
wayland-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to