fullscreen-shell: unregister output created listener on shell destroy

Signed-off-by: Arnaud Vrac <avrac@freebox.fr>
This commit is contained in:
Arnaud Vrac 2024-01-22 12:45:31 +01:00 committed by Marius Vlad
parent 9406664a54
commit ccb6413aa1
1 changed files with 2 additions and 0 deletions

View File

@ -876,6 +876,8 @@ fullscreen_shell_destroy(struct wl_listener *listener, void *data)
wl_list_for_each_safe(fs_output, fs_output_next, &shell->output_list, link)
fs_output_destroy(fs_output);
wl_list_remove(&shell->output_created_listener.link);
if (!wl_list_empty(&shell->default_surface_list)) {
surf = container_of(shell->default_surface_list.prev,
struct fs_client_surface, link);