aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-01-19 14:08:47 +0100
committeremersion <contact@emersion.fr>2018-01-19 14:08:47 +0100
commite29a0df8c14fdc5038e64de4a1ad08a7de8fd7fc (patch)
treec5e548301ffa56659153f7e4f3d4e3426f581d82 /include/wlr
parentb296481007f79481a90a82f3dee3aead2883d00c (diff)
output: fix software cursors damage tracking
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/types/wlr_output.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/wlr/types/wlr_output.h b/include/wlr/types/wlr_output.h
index 2c28e82f..1091ee62 100644
--- a/include/wlr/types/wlr_output.h
+++ b/include/wlr/types/wlr_output.h
@@ -2,6 +2,7 @@
#define WLR_TYPES_WLR_OUTPUT_H
#include <stdbool.h>
+#include <time.h>
#include <pixman.h>
#include <wayland-util.h>
#include <wayland-server.h>
@@ -103,7 +104,13 @@ void wlr_output_destroy(struct wlr_output *output);
void wlr_output_effective_resolution(struct wlr_output *output,
int *width, int *height);
void wlr_output_make_current(struct wlr_output *output);
-void wlr_output_swap_buffers(struct wlr_output *output);
+/**
+ * Swaps the output buffers. If the time of the frame isn't known, set `when` to
+ * NULL. If the compositor doesn't support damage tracking, set `damage` to
+ * NULL.
+ */
+void wlr_output_swap_buffers(struct wlr_output *output, struct timespec *when,
+ pixman_region32_t *damage);
void wlr_output_set_gamma(struct wlr_output *output,
uint32_t size, uint16_t *r, uint16_t *g, uint16_t *b);
uint32_t wlr_output_get_gamma_size(struct wlr_output *output);