[PATCH 2/7] compositor-drm: Do not exit when there are no outputs left

Armin Krezović krezovic.armin at gmail.com
Fri Jul 29 11:26:23 UTC 2016


When there are no outputs left after a hotplug event, weston
will terminate. This isn't desired when trying to get weston
to work with zero outputs.

Signed-off-by: Armin Krezović <krezovic.armin at gmail.com>
---
 libweston/compositor-drm.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/libweston/compositor-drm.c b/libweston/compositor-drm.c
index f089741..de334f1 100644
--- a/libweston/compositor-drm.c
+++ b/libweston/compositor-drm.c
@@ -2689,10 +2689,6 @@ update_outputs(struct drm_backend *b, struct udev_device *drm_device)
 			}
 		}
 	}
-
-	/* FIXME: handle zero outputs, without terminating */
-	if (b->connector_allocator == 0)
-		weston_compositor_exit(b->compositor);
 }
 
 static int
-- 
2.9.2



More information about the wayland-devel mailing list