From 35ffc2dac70619373b61716b64a88bcd6c3d7b55 Mon Sep 17 00:00:00 2001 From: Andri Yngvason Date: Thu, 5 Mar 2020 19:15:35 +0000 Subject: [PATCH] output: Add transform --- include/output.h | 3 +++ src/output.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/include/output.h b/include/output.h index 81a68ac..4fd3374 100644 --- a/include/output.h +++ b/include/output.h @@ -16,6 +16,7 @@ #pragma once +#include #include #include @@ -34,6 +35,8 @@ struct output { uint32_t x; uint32_t y; + enum wl_output_transform transform; + char make[256]; char model[256]; char name[256]; diff --git a/src/output.c b/src/output.c index e97c840..d50efd6 100644 --- a/src/output.c +++ b/src/output.c @@ -37,6 +37,8 @@ static void output_handle_geometry(void* data, struct wl_output* wl_output, output->x = x; output->y = y; + output->transform = transform; + strlcpy(output->make, make, sizeof(output->make)); strlcpy(output->model, model, sizeof(output->model)); }