@ -4868,19 +4868,19 @@ shell_output_changed_move_layer(struct desktop_shell *shell,
static void
static void
handle_output_destroy ( struct wl_listener * listener , void * data )
handle_output_destroy ( struct wl_listener * listener , void * data )
{
{
struct shell_output * output_listener =
struct shell_output * shell_ output =
container_of ( listener , struct shell_output , destroy_listener ) ;
container_of ( listener , struct shell_output , destroy_listener ) ;
struct desktop_shell * shell = output_listener - > shell ;
struct desktop_shell * shell = shell_ output- > shell ;
shell_for_each_layer ( shell , shell_output_changed_move_layer , NULL ) ;
shell_for_each_layer ( shell , shell_output_changed_move_layer , NULL ) ;
if ( output_listener - > panel_surface )
if ( shell_ output- > panel_surface )
wl_list_remove ( & output_listener - > panel_surface_listener . link ) ;
wl_list_remove ( & shell_ output- > panel_surface_listener . link ) ;
if ( output_listener - > background_surface )
if ( shell_ output- > background_surface )
wl_list_remove ( & output_listener - > background_surface_listener . link ) ;
wl_list_remove ( & shell_ output- > background_surface_listener . link ) ;
wl_list_remove ( & output_listener - > destroy_listener . link ) ;
wl_list_remove ( & shell_ output- > destroy_listener . link ) ;
wl_list_remove ( & output_listener - > link ) ;
wl_list_remove ( & shell_ output- > link ) ;
free ( output_listener ) ;
free ( shell_ output) ;
}
}
static void
static void