From 632a7acb03f4c4b8d06fdf7f8d7839db27cde538 Mon Sep 17 00:00:00 2001 From: Scott Anderson Date: Thu, 8 Jun 2017 00:39:40 +1200 Subject: Filled out more wlr_output fields. --- example/main.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'example') diff --git a/example/main.c b/example/main.c index 27d598e6..87999e11 100644 --- a/example/main.c +++ b/example/main.c @@ -2,6 +2,7 @@ #include #include #include +#include #include #include #include @@ -54,6 +55,8 @@ void output_add(struct wl_listener *listener, void *data) { struct wlr_output *output = data; struct state *state = wl_container_of(listener, state, output_add); fprintf(stderr, "Output '%s' added\n", output->name); + fprintf(stderr, "%s %s %"PRId32"mm x %"PRId32"mm\n", output->make, output->model, + output->phys_width, output->phys_height); wlr_output_set_mode(output, output->modes->items[0]); struct output_state *ostate = calloc(1, sizeof(struct output_state)); ostate->output = output; -- cgit v1.2.3