output: Add transform

pull/20/head
Andri Yngvason 2020-03-05 19:15:35 +00:00
parent a3d4189a0b
commit 35ffc2dac7
2 changed files with 5 additions and 0 deletions

View File

@ -16,6 +16,7 @@
#pragma once
#include <wayland-client-protocol.h>
#include <wayland-client.h>
#include <stdint.h>
@ -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];

View File

@ -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));
}