compositor-x11: Set the name field on weston_outputs

That way log messages referencing the output are more informative.
dev
Ander Conselvan de Oliveira 11 years ago committed by Kristian Høgsberg
parent 41b829c025
commit d4ea71eada
  1. 4
      src/compositor-x11.c

@ -871,6 +871,10 @@ x11_compositor_create_output(struct x11_compositor *c, int x, int y,
output->base.current_mode = &output->mode; output->base.current_mode = &output->mode;
output->base.make = "xwayland"; output->base.make = "xwayland";
output->base.model = "none"; output->base.model = "none";
if (configured_name)
output->base.name = strdup(configured_name);
weston_output_init(&output->base, &c->base, weston_output_init(&output->base, &c->base,
x, y, width, height, transform, scale); x, y, width, height, transform, scale);

Loading…
Cancel
Save