@ -2918,6 +2918,7 @@ int main(int argc, char *argv[])
struct wl_listener primary_client_destroyed ;
struct wl_listener primary_client_destroyed ;
struct weston_seat * seat ;
struct weston_seat * seat ;
struct wet_compositor wet = { 0 } ;
struct wet_compositor wet = { 0 } ;
struct weston_debug_compositor * wdc = NULL ;
int require_input ;
int require_input ;
sigset_t mask ;
sigset_t mask ;
@ -2961,6 +2962,12 @@ int main(int argc, char *argv[])
return EXIT_SUCCESS ;
return EXIT_SUCCESS ;
}
}
wdc = weston_debug_compositor_create ( ) ;
if ( ! wdc ) {
fprintf ( stderr , " Failed to initialize weston debug framework. \n " ) ;
return EXIT_FAILURE ;
}
weston_log_set_handler ( vlog , vlog_continue ) ;
weston_log_set_handler ( vlog , vlog_continue ) ;
weston_log_file_open ( log ) ;
weston_log_file_open ( log ) ;
@ -3025,7 +3032,7 @@ int main(int argc, char *argv[])
backend = weston_choose_default_backend ( ) ;
backend = weston_choose_default_backend ( ) ;
}
}
wet . compositor = weston_compositor_create ( display , & wet ) ;
wet . compositor = weston_compositor_create ( display , wdc , & wet ) ;
if ( wet . compositor = = NULL ) {
if ( wet . compositor = = NULL ) {
weston_log ( " fatal: failed to create compositor \n " ) ;
weston_log ( " fatal: failed to create compositor \n " ) ;
goto out ;
goto out ;