From ca770995cc98cb0889542b082c1924b24c6d5446 Mon Sep 17 00:00:00 2001 From: emersion Date: Sat, 10 Nov 2018 15:50:28 +0100 Subject: output: add wlr_output_render_software_cursors Rendering in wlr_output_swap_buffers has unfortunate side-effects. --- include/wlr/types/wlr_output.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/wlr') diff --git a/include/wlr/types/wlr_output.h b/include/wlr/types/wlr_output.h index 4e569168..557a3895 100644 --- a/include/wlr/types/wlr_output.h +++ b/include/wlr/types/wlr_output.h @@ -230,6 +230,12 @@ struct wlr_output *wlr_output_from_resource(struct wl_resource *resource); * a lock. */ void wlr_output_lock_software_cursors(struct wlr_output *output, bool lock); +/** + * Renders software cursors. This is a utility function that can be called when + * compositors render. + */ +void wlr_output_render_software_cursors(struct wlr_output *output, + pixman_region32_t *damage); struct wlr_output_cursor *wlr_output_cursor_create(struct wlr_output *output); -- cgit v1.2.3