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

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().
This commit is contained in:
Alex Wu 2012-03-05 11:01:40 +08:00 committed by Kristian Høgsberg
parent 60c4954b8a
commit aa08e2d56d

View File

@ -774,6 +774,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);
}