output: add wlr_output::damage, fixes #572

This commit is contained in:
emersion 2018-01-18 19:47:21 +01:00
parent baa17ec755
commit bde255933e
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
6 changed files with 50 additions and 19 deletions

View file

@ -2,6 +2,7 @@
#define WLR_TYPES_WLR_OUTPUT_H
#include <stdbool.h>
#include <pixman.h>
#include <wayland-util.h>
#include <wayland-server.h>
@ -51,8 +52,8 @@ struct wlr_output {
float scale;
enum wl_output_subpixel subpixel;
enum wl_output_transform transform;
bool needs_swap;
pixman_region32_t damage;
float transform_matrix[16];
// Note: some backends may have zero modes