From d4ea71eada760c049cb92af05ebe47c1c81162d0 Mon Sep 17 00:00:00 2001 From: Ander Conselvan de Oliveira Date: Wed, 18 Dec 2013 19:51:40 +0200 Subject: [PATCH] compositor-x11: Set the name field on weston_outputs That way log messages referencing the output are more informative. --- src/compositor-x11.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/compositor-x11.c b/src/compositor-x11.c index 2ef1b5d7..1b178b8a 100644 --- a/src/compositor-x11.c +++ b/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.make = "xwayland"; output->base.model = "none"; + + if (configured_name) + output->base.name = strdup(configured_name); + weston_output_init(&output->base, &c->base, x, y, width, height, transform, scale);