compositor-fbdev: give the output a name

If you have devices configured in seats with udev then the output names
are tested with string compare.  This fixes a potential crash on startup and
device insertion.

Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
dev
Derek Foreman 10 years ago committed by Pekka Paalanen
parent c93782ad33
commit e516c3bb80
  1. 1
      src/compositor-fbdev.c

@ -550,6 +550,7 @@ fbdev_output_create(struct fbdev_compositor *compositor,
output->base.subpixel = WL_OUTPUT_SUBPIXEL_UNKNOWN;
output->base.make = "unknown";
output->base.model = output->fb_info.id;
output->base.name = strdup("fbdev");
weston_output_init(&output->base, &compositor->base,
0, 0, output->fb_info.width_mm,

Loading…
Cancel
Save