desktop-shell: Fix output destroying

Now we properly unregister from the panel/background surface destroy
signals if the output is destroyed first.

Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
Reviewed-by: Armin Krezović <krezovic.armin@gmail.com>
dev
Quentin Glidic 8 years ago
parent 4b6321f49a
commit 561201c689
No known key found for this signature in database
GPG Key ID: AC203F96E2C34BB7
  1. 2
      desktop-shell/shell.c

@ -4588,6 +4588,8 @@ handle_output_destroy(struct wl_listener *listener, void *data)
shell_for_each_layer(shell, shell_output_destroy_move_layer, output);
wl_list_remove(&output_listener->panel_surface_listener.link);
wl_list_remove(&output_listener->background_surface_listener.link);
wl_list_remove(&output_listener->destroy_listener.link);
wl_list_remove(&output_listener->link);
free(output_listener);

Loading…
Cancel
Save