wlserver: check wlr_output_commit return value
This commit is contained in:
parent
2597c25ec6
commit
ee96a669ef
1 changed files with 5 additions and 1 deletions
|
@ -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 );
|
||||
|
||||
|
|
Loading…
Reference in a new issue