mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-04 09:27:59 +02:00
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:
parent
60c4954b8a
commit
aa08e2d56d
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue