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
@ -774,6 +774,9 @@ destroy_shell_surface(struct wl_resource *resource)
|
|||||||
if (shsurf->surface)
|
if (shsurf->surface)
|
||||||
wl_list_remove(&shsurf->surface_destroy_listener.link);
|
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);
|
wl_list_remove(&shsurf->link);
|
||||||
free(shsurf);
|
free(shsurf);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user