compositor-drm: Do not return an error when no connectors are configured
Returning an error when there are no connectors results in weston terminating after that. That's not expected when trying to get weston to start with zero drm outputs. Signed-off-by: Armin Krezović <krezovic.armin@gmail.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
This commit is contained in:
parent
707c4fd155
commit
b12a754259
@ -2618,11 +2618,8 @@ create_outputs(struct drm_backend *b, uint32_t option_connector,
|
||||
drmModeFreeConnector(connector);
|
||||
}
|
||||
|
||||
if (wl_list_empty(&b->compositor->output_list)) {
|
||||
if (wl_list_empty(&b->compositor->output_list))
|
||||
weston_log("No currently active connector found.\n");
|
||||
drmModeFreeResources(resources);
|
||||
return -1;
|
||||
}
|
||||
|
||||
drmModeFreeResources(resources);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user