compositor-drm: Do not exit when there are no outputs left

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@gmail.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
dev
Armin Krezović 8 years ago committed by Pekka Paalanen
parent b12a754259
commit 984781f302
  1. 4
      libweston/compositor-drm.c

@ -2690,10 +2690,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 static int

Loading…
Cancel
Save