wlserver: check wlr_output_commit return value

This commit is contained in:
Simon Ser 2021-08-03 10:42:54 +02:00
parent 2597c25ec6
commit ee96a669ef

View file

@ -635,7 +635,11 @@ int wlserver_init(int argc, char **argv, bool bIsNested) {
wlr_output_enable( wlserver.wlr.output, true );
wlr_output_set_custom_mode( wlserver.wlr.output, g_nNestedWidth, g_nNestedHeight, g_nOutputRefresh * 1000 );
wlr_output_commit( wlserver.wlr.output );
if ( !wlr_output_commit( wlserver.wlr.output ) )
{
wlr_log(WLR_ERROR, "Failed to commit noop output");
return 1;
}
wlr_output_create_global( wlserver.wlr.output );