[PATCH 2/2] compositor-x11: Set the name field on weston_outputs
Ander Conselvan de Oliveira
conselvan2 at gmail.com
Wed Dec 18 09:51:40 PST 2013
From: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira at intel.com>
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 2ef1b5d..1b178b8 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);
--
1.7.9.5
More information about the wayland-devel
mailing list