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().
Alex Wu 13 years ago committed by Kristian Høgsberg
parent 60c4954b8a
commit aa08e2d56d
  1. 3
      src/shell.c

@ -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);
}

Loading…
Cancel
Save