From 439d98697a4fd7ffac1ab6c0a29cdf4d335ad0ca Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Fri, 7 Oct 2011 08:20:53 +0200 Subject: [PATCH] compositor-drm: Be patient when output creation fails Do not fail if e.g. only one of 3 connectors cant be enabled. Could be that we just have not enough crtcs available. --- compositor/compositor-drm.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/compositor/compositor-drm.c b/compositor/compositor-drm.c index 3519912..0f2f2c7 100644 --- a/compositor/compositor-drm.c +++ b/compositor/compositor-drm.c @@ -570,8 +570,10 @@ create_outputs(struct drm_compositor *ec, int option_connector) (option_connector == 0 || connector->connector_id == option_connector)) { if (create_output_for_connector(ec, resources, - connector, x, y) < 0) - return -1; + connector, x, y) < 0) { + drmModeFreeConnector(connector); + continue; + } x += container_of(ec->base.output_list.prev, struct wlsc_output, -- 2.7.4